Skip to content

Commit

Permalink
Update Docker release workflow (#18)
Browse files Browse the repository at this point in the history
This commit removes tag triggering and adds checks for PR events and SHA
tags in the Docker release workflow. It aims to enhance the automation
process by focusing on specific triggering events like PRs and
refactoring tag generation for image releases.
  • Loading branch information
SmetDenis committed Mar 13, 2024
1 parent 70c6715 commit acabab0
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/release-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ on:
push:
branches:
- "*"
tags:
- "*.*.*"
- "*.*"
- "*"
pull_request:
branches:
- "master"
Expand All @@ -41,9 +37,11 @@ jobs:
images: jbzoo/csv-blueprint
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand All @@ -52,7 +50,7 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
if: github.event_name != 'pull_request'
# if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
Expand All @@ -62,6 +60,6 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
# push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit acabab0

Please sign in to comment.