From ade1b26c0e90f9d478867574ab10328e055c8d04 Mon Sep 17 00:00:00 2001 From: DanVanAtta Date: Tue, 9 Jul 2024 17:37:15 -0700 Subject: [PATCH] Docker builds: add a docker build for flyway --- .github/workflows/master.yml | 10 +++++++--- database/sql/Dockerfile | 5 +++++ 2 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 database/sql/Dockerfile diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 29413eb..8de7490 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -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/ssh-agent@v0.9.0 diff --git a/database/sql/Dockerfile b/database/sql/Dockerfile new file mode 100644 index 0000000..5b3389e --- /dev/null +++ b/database/sql/Dockerfile @@ -0,0 +1,5 @@ +FROM flyway/flyway + +RUN mkdir /flyway/sql +COPY migrations /flyway/sql/ +