Skip to content
This repository has been archived by the owner on Jul 23, 2021. It is now read-only.

Commit

Permalink
split github actions
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Kotzbauer <christian.kotzbauer@gmail.com>
  • Loading branch information
ckotzbauer committed May 26, 2020
1 parent d26aa06 commit 731d9aa
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/docker-latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Publish Latest to Registry
on:
push:
branches:
- master
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: ckotzbauer/k8spolicy
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tags: "latest"
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
name: Publish to Registry
on:
name: Publish Release to Registry
on:
release:
types: [published]
push:
branches:
- master
jobs:
update:
runs-on: ubuntu-latest
Expand All @@ -19,4 +16,4 @@ jobs:
name: ckotzbauer/k8spolicy
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tags: "latest,${{ env.RELEASE_VERSION }}"
tags: "${{ env.RELEASE_VERSION }}"

0 comments on commit 731d9aa

Please sign in to comment.