Skip to content

Commit

Permalink
Bump docker/build-push-action to 6 and filter artifacts to release
Browse files Browse the repository at this point in the history
  • Loading branch information
deluan committed Oct 11, 2024
1 parent 6c83655 commit cda2e33
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,18 @@ jobs:
echo "TAGLIB_VERSION=$TAGLIB_VERSION" >> $GITHUB_ENV
echo "TAGLIB_SHA=$TAGLIB_SHA" >> $GITHUB_ENV
- name: Set DOCKER_BUILD_SUMMARY
run: |
if [[ ${{ github.ref }} == refs/tags/v* ]]; then
echo "DOCKER_BUILD_SUMMARY=false" >> $GITHUB_ENV
else
echo "DOCKER_BUILD_SUMMARY=true" >> $GITHUB_ENV
fi
- name: Build
uses: docker/build-push-action@v6
env:
DOCKER_BUILD_SUMMARY: ${{ env.DOCKER_BUILD_SUMMARY }}
with:
context: .
file: Dockerfile
Expand Down Expand Up @@ -68,7 +78,7 @@ jobs:
release:
needs: build
runs-on: ubuntu-latest
# if: startsWith(github.ref, 'refs/tags/')
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Download artifact
uses: actions/download-artifact@v4
Expand Down

0 comments on commit cda2e33

Please sign in to comment.