generated from CDCgov/template
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install liquibase manually without GitHub action that ignores the VPN
- Loading branch information
Showing
1 changed file
with
16 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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() | ||
|