Skip to content

Commit

Permalink
CI: release when properly tagged
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Duarte Barroso <[email protected]>
  • Loading branch information
maiqueb committed Oct 27, 2022
1 parent f9a3c88 commit c859aaa
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/image-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
push:
branches:
- main
tags:
- 'v*.*.*'
env:
image-push-owner: 'maiqueb'
jobs:
Expand Down Expand Up @@ -32,3 +34,24 @@ jobs:
push: true
tags: ghcr.io/${{ github.repository }}:latest-amd64
file: images/Dockerfile

- name: Push stable container image
if: ( github.repository_owner == 'maiqueb' && startsWith(github.ref, 'refs/tags/') )
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ghcr.io/${{ github.repository }}:${{ github.ref_name }}
file: images/Dockerfile

- name: Template release manifests
if: ( github.repository_owner == 'maiqueb' && startsWith(github.ref, 'refs/tags/') )
run: IMAGE_TAG=${{ github.ref_name }} make manifests

- name: Release the kraken
uses: softprops/action-gh-release@v1
if: ( github.repository_owner == 'maiqueb' && startsWith(github.ref, 'refs/tags/') )
generate_release_notes: true
files: |
manifests/crio-dynamic-networks-controller.yaml
manifests/dynamic-networks-controller.yaml

0 comments on commit c859aaa

Please sign in to comment.