Skip to content

Commit

Permalink
feat: tag triggers push
Browse files Browse the repository at this point in the history
  • Loading branch information
mabunixda committed Mar 21, 2023
1 parent ffe62fb commit 6883c79
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
branches: [ 'main' ]
pull_request:
branches: [ 'main' ]
tags: [ "v*.*.*" ]

jobs:
prebuild:
Expand Down Expand Up @@ -93,15 +94,15 @@ jobs:
${{ runner.os }}-buildx-
- name: Login to Quay
if: needs.prebuild.outputs.version != ''
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
registry: quay.io
username: ${{ secrets.QUAY_USER }}
password: ${{ secrets.QUAY_TOKEN }}

- name: Login to GitHub Container Registry
if: needs.prebuild.outputs.version != ''
if: ngithub.event_name != 'pull_request'
uses: docker/login-action@v1
with:
registry: ghcr.io
Expand Down

0 comments on commit 6883c79

Please sign in to comment.