Skip to content

Commit

Permalink
ci(goreleaser): push images if workflow_dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
ekristen committed Aug 28, 2024
1 parent fecbf3d commit 7da57c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: push docker images (for branches)
if: github.ref == 'refs/heads/main' || github.event.pull_request.base.ref == 'main'
if: github.ref == 'refs/heads/main' || github.event.pull_request.base.ref == 'main' || github.event_name == 'workflow_dispatch'
run: |
docker images --format "{{.Repository}}:{{.Tag}}" | grep "${{ github.repository }}" | xargs -L1 docker push
docker images --format "{{.Repository}}:{{.Tag}}" | grep "${{ github.repository }}" | grep -v "<none>" | xargs -L1 docker push
- name: upload artifacts
if: ${{ github.event.pull_request.base.ref == 'main' || github.event_name == 'workflow_dispatch' }}
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 7da57c8

Please sign in to comment.