# Liquibase deploy same changelogfile twice when running as CICD using docker image

**URL:** <https://forum.liquibase.org/t/liquibase-deploy-same-changelogfile-twice-when-running-as-cicd-using-docker-image/5823>\
**Category:** Liquibase Development\
**Created:** [August 21, 2021, 6:07pm UTC](https://forum.liquibase.org/t/liquibase-deploy-same-changelogfile-twice-when-running-as-cicd-using-docker-image/5823 "2021-08-21T18:07:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajivgupta780184](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.liquibase.org/rajivgupta780184/32/450_2.png) [@rajivgupta780184](https://forum.liquibase.org/u/rajivgupta780184)\
**Post date:** [August 21, 2021, 6:07pm UTC](https://forum.liquibase.org/t/liquibase-deploy-same-changelogfile-twice-when-running-as-cicd-using-docker-image/5823/1 "2021-08-21T18:07:14Z")

</div>

Hi All,

I am doing POC on Devops setup using liquibase docker image. I am using latest image.  
My master changelog has below path in my github repo.

and deploy folder contain all my actual changelog file.

Now when I am trying same from local it works but same is failing when running from github action using liquibase docker image  
my yml file contain below code.

# Controls when the action will run.

on:  
push:  
branches:  
- main  
paths:  
- ‘dbscripts/deploy/\*\*’

# A workflow run is made up of one or more jobs that can run sequentially or in parallel

jobs:  
LBJobDockerCLI:  
runs-on: ubuntu-latest  
steps:  
- uses: actions/checkout@v2

- name: Run ‘Liquibase update’ in a Docker Container  
uses: docker://liquibase/liquibase:latest  
with:  
args: --url=${{ secrets.SF\_URL }} --changeLogFile=./dbscripts/masterChangelog.xml --username=${{ secrets.SF\_USERNAME }} --password=${{ secrets.SF\_PASSWORD }} --driver=${{ secrets.SF\_DRIVER }} --defaultSchemaName=${{ secrets.SF\_SCHEMA }} --logLevel=debug update

Now, when I put 1 changeset for creating a table. It creates table but then my job get failed complaining table already exist. What should I do to stop liquibase to deploy same changelog file twice ? Any help?  
When I modified my create table SQL as create or replace. I got deployment green, but then i see 2 entries in changelogfile with slight difference in path.

---

<div class="post-metadata">

**Author:** ![szandany](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@szandany](https://forum.liquibase.org/u/szandany)\
**Post date:** [August 24, 2021, 7:34pm UTC](https://forum.liquibase.org/t/liquibase-deploy-same-changelogfile-twice-when-running-as-cicd-using-docker-image/5823/2 "2021-08-24T19:34:09Z")

</div>

Hi @rajivgupta780184  
Can you please try to remove the ./ before the changelog file path name and see if the problem goes away?  
For example:  
–changeLogFile=dbscripts/masterChangelog.xml

---

<div class="post-metadata">

**Author:** ![rajivgupta780184](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.liquibase.org/rajivgupta780184/32/450_2.png) [@rajivgupta780184](https://forum.liquibase.org/u/rajivgupta780184)\
**Post date:** [August 24, 2021, 7:59pm UTC](https://forum.liquibase.org/t/liquibase-deploy-same-changelogfile-twice-when-running-as-cicd-using-docker-image/5823/3 "2021-08-24T19:59:54Z")

</div>

I did that all. It’s not working.

---

<div class="post-metadata">

**Author:** ![szandany](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@szandany](https://forum.liquibase.org/u/szandany)\
**Post date:** [August 25, 2021, 12:10pm UTC](https://forum.liquibase.org/t/liquibase-deploy-same-changelogfile-twice-when-running-as-cicd-using-docker-image/5823/4 "2021-08-25T12:10:20Z")

</div>

To be clear, you will need to remove any “./” where files are referenced.  
So if your masterChangeLog.xml contains any “./” remove those as well.  
From this:  
\< includeAll path="./sql\_folder" relativeToChangelogFile=“true”/ \>  
To this:  
\< includeAll path=“sql\_folder” relativeToChangelogFile=“true”/ \>

---

<div class="post-metadata">

**Author:** ![rajivgupta780184](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.liquibase.org/rajivgupta780184/32/450_2.png) [@rajivgupta780184](https://forum.liquibase.org/u/rajivgupta780184)\
**Post date:** [August 27, 2021, 9:14pm UTC](https://forum.liquibase.org/t/liquibase-deploy-same-changelogfile-twice-when-running-as-cicd-using-docker-image/5823/5 "2021-08-27T21:14:25Z")

</div>

> [@szandany](#):
>
> includeAll path=

Thanks szandany 🙂 . It solved my problem.

---

<div class="post-metadata">

**Author:** ![szandany](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@szandany](https://forum.liquibase.org/u/szandany)\
**Post date:** [August 28, 2021, 1:37pm UTC](https://forum.liquibase.org/t/liquibase-deploy-same-changelogfile-twice-when-running-as-cicd-using-docker-image/5823/6 "2021-08-28T13:37:44Z")

</div>

Awesome, @rajivgupta780184 !
