Skip to content

Commit

Permalink
CI: fix github treating bools as strings in ci yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wirew0rm authored and RalphSteinhagen committed Apr 22, 2024
1 parent ac7f40a commit c96c8ec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,25 @@ jobs:
- name: Set up Docker Label
id: docker-label
run: |
if [ ${{ steps.changes.outputs.docker && github.event_name != 'push' }} = "true" ]; then
if [ ${{ steps.changes.outputs.docker == 'true' && github.event_name != 'push' }} = "true" ]; then
echo "label=ghcr.io/fair-acc/gr4-build-container:$GITHUB_HEAD_REF" >> "$GITHUB_OUTPUT"
else
echo "label=ghcr.io/fair-acc/gr4-build-container:latest" >> "$GITHUB_OUTPUT"
fi
- name: Set up Docker Buildx
if: steps.changes.outputs.docker
if: steps.changes.outputs.docker == 'true'
uses: docker/setup-buildx-action@v3

- uses: docker/login-action@v3
if: steps.changes.outputs.docker
if: steps.changes.outputs.docker == 'true'
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- uses: docker/build-push-action@v5
if: steps.changes.outputs.docker
if: steps.changes.outputs.docker == 'true'
with:
context: "{{defaultContext}}:docker"
push: true
Expand Down

0 comments on commit c96c8ec

Please sign in to comment.