Skip to content

Commit

Permalink
feat(github workflows): test1 of condition of workflow to build postg…
Browse files Browse the repository at this point in the history
…res db image
  • Loading branch information
Christopher Fremond committed Nov 24, 2023
1 parent 1d3d6c2 commit 1f6a23d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ga-image-build-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,13 @@ jobs:
username: ${{ secrets.USER_DOCKER_01EDU_ORG }}
password: ${{ secrets.SECRET_DOCKER_01EDU_ORG }}

- name: postgres-db source code changes check
id: check-changes-1
run: |
echo "changed_files=$(git diff --name-only --merge-base master -- srcs/postgres-db | xargs)" >> $GITHUB_OUTPUT
- name: 🏗️ Build the 💻 postgres-db image
if: always()
if: steps.check-changes-1.outputs.changed_files != ''
run: |
docker build srcs/postgres-db/ --file srcs/postgres-db/Dockerfile --tag ghcr.io/01-edu/content-postgres-db
docker push ghcr.io/01-edu/content-postgres-db

0 comments on commit 1f6a23d

Please sign in to comment.