Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
twobiers authored Apr 26, 2023
1 parent b4d2fae commit 6a6071b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ on:
- opened
- synchronize
- edited
release:
types: [created]

env:
REGISTRY: quay.io/innovation-hub-bergisches-rheinland
Expand Down Expand Up @@ -52,7 +54,7 @@ jobs:
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@v2
if: ${{ github.event_name == 'push' }}
if: ${{ github.event_name == 'push' || (github.event_name == 'release' && github.event.action == 'created') }}
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.QUAY_IO_USERNAME }}
Expand All @@ -61,7 +63,7 @@ jobs:
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
push: ${{ github.event_name == 'push' }}
push: ${{ github.event_name == 'push' || (github.event_name == 'release' && github.event.action == 'created') }}
file: Dockerfile
context: .
tags: ${{ steps.meta.outputs.tags }}
Expand Down

0 comments on commit 6a6071b

Please sign in to comment.