Skip to content

Commit

Permalink
Merge pull request #19 from triplea-game/docker-build-for-flyway
Browse files Browse the repository at this point in the history
Docker builds: add a docker build for flyway
  • Loading branch information
DanVanAtta authored Jul 10, 2024
2 parents b4c3b04 + ade1b26 commit 18dcec5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,14 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: build docker container
- name: build database docker container
run: |
docker build . --tag ghcr.io/triplea-game/lobby:latest
docker push ghcr.io/triplea-game/lobby:latest
docker build database/sql --tag ghcr.io/triplea-game/lobby/flyway:latest
docker push ghcr.io/triplea-game/lobby/flyway:latest
- name: build server docker container
run: |
docker build . --tag ghcr.io/triplea-game/lobby/server:latest
docker push ghcr.io/triplea-game/lobby/server:latest
# - name: Load SSH private key into ssh-agent
# uses: webfactory/[email protected]
Expand Down
5 changes: 5 additions & 0 deletions database/sql/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM flyway/flyway

RUN mkdir /flyway/sql
COPY migrations /flyway/sql/

0 comments on commit 18dcec5

Please sign in to comment.