Skip to content

Commit

Permalink
Install liquibase manually without GitHub action that ignores the VPN
Browse files Browse the repository at this point in the history
  • Loading branch information
halprin committed Mar 7, 2024
1 parent ae0700e commit db7db8a
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/terraform-deploy_reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,23 @@ jobs:
- name: debug
run: dig ${{ env.DATABASE_HOSTNAME }}

- name: Install Liquibase
run: |
wget -O- https://repo.liquibase.com/liquibase.asc | gpg --dearmor > liquibase-keyring.gpg && \cat liquibase-keyring.gpg | sudo tee /usr/share/keyrings/liquibase-keyring.gpg > /dev/null && \echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/liquibase-keyring.gpg] https://repo.liquibase.com stable main' | sudo tee /etc/apt/sources.list.d/liquibase.list
sudo apt-get update
sudo apt-get install liquibase
liquibase -v
- name: Run Db migration
uses: liquibase-github-actions/[email protected]
with:
changelogFile: ./etor/databaseMigrations/root.yml
url: "jdbc:postgresql://${{ env.DATABASE_HOSTNAME }}:5432/postgres"
username: cdcti-github
password: ${{ env.DATABASE_PASSWORD }}
run: liquibase update --changelog-file ./etor/databaseMigrations/root.yml --url 'jdbc:postgresql://${{ env.DATABASE_HOSTNAME }}:5432/postgres' --username cdcti-github --password '${{ env.DATABASE_PASSWORD }}'

# - name: Run Db migration
# uses: liquibase-github-actions/[email protected]
# with:
# changelogFile: ./etor/databaseMigrations/root.yml
# url: "jdbc:postgresql://${{ env.DATABASE_HOSTNAME }}:5432/postgres"
# username: cdcti-github
# password: ${{ env.DATABASE_PASSWORD }}

- name: Disconnect VPN
if: always()
Expand Down

0 comments on commit db7db8a

Please sign in to comment.