Skip to content

Commit

Permalink
do not run snapshot publish on pr
Browse files Browse the repository at this point in the history
  • Loading branch information
tarioch committed Apr 25, 2020
1 parent 88f9114 commit 68d35b5
Showing 1 changed file with 19 additions and 22 deletions.
41 changes: 19 additions & 22 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,30 @@ name: Docker Image CI

on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Publish Snapshot to Registry
uses: HurricanKai/Publish-Docker-Github-Action@master
if: "!contains(github.ref, 'refs/tags/v')"
with:
name: tarioch/fava
snapshot: true
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Publish Release to Registry
uses: HurricanKai/Publish-Docker-Github-Action@master
if: contains(github.ref, 'refs/tags/v')
with:
name: tarioch/fava
tagging: true
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}



- uses: actions/checkout@master
- name: Publish Snapshot to Registry
uses: HurricanKai/Publish-Docker-Github-Action@master
if: "!contains(github.ref, 'refs/tags/v') && !contains(github.ref, 'refs/pull')"
with:
name: tarioch/fava
snapshot: true
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Publish Release to Registry
uses: HurricanKai/Publish-Docker-Github-Action@master
if: contains(github.ref, 'refs/tags/v')
with:
name: tarioch/fava
tagging: true
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

0 comments on commit 68d35b5

Please sign in to comment.