Skip to content
This repository has been archived by the owner on Apr 27, 2024. It is now read-only.

Commit

Permalink
Build on tag creation
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-maynard committed Nov 22, 2020
1 parent 729c543 commit 0dc9559
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build on creation of a new tag
on:
create:
tags:
- v*
jobs:
build-master:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
-
name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: ghcr.io/benjamin-maynard/kubernetes-cloud-mysql-backup:${{ steps.get_version.outputs.VERSION }}

0 comments on commit 0dc9559

Please sign in to comment.