Skip to content

Commit

Permalink
Notification + diff
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderM91 committed Oct 18, 2024
1 parent c844df9 commit b3b8290
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,24 +120,25 @@ jobs:
docker push $NEW_TAG
done
- name: Build for diff and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: false
load: true
file: ${{ matrix.image }}
tags: ${{ join(matrix.tags) }}
platforms: "linux/amd64"

# - name: Build and push
# - name: Build for diff and push
# id: docker_build
# uses: docker/build-push-action@v2
# with:
# push: ${{ github.ref == 'refs/heads/master' }}
# push: false
# load: true
# file: ${{ matrix.image }}
# tags: ${{ join(matrix.tags) }}
# platforms: ${{ join(matrix.platforms) }}
# platforms: "linux/amd64"

- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: ${{ github.ref == 'refs/heads/master' }}
load: ${{ github.ref != 'refs/heads/master' }}
file: ${{ matrix.image }}
tags: ${{ join(matrix.tags) }}
platforms: ${{ github.ref == 'refs/heads/master' && join(matrix.platforms) || 'linux/amd64' }}

- name: Current image report
run: |
Expand All @@ -161,7 +162,8 @@ jobs:
echo "EOF" >> $GITHUB_ENV
- name: Send Slack Notification
# if: ${{ github.ref == 'refs/heads/master' }}
if: ${{ env.DIFF_OUTPUT != '' }}
# if: ${{ github.ref == 'refs/heads/master' && env.DIFF_OUTPUT != '' }}
uses: slackapi/[email protected]
with:
payload: |
Expand Down

0 comments on commit b3b8290

Please sign in to comment.