From 0861b3fe077d2709209fc4320538df1c0db5d05b Mon Sep 17 00:00:00 2001 From: tim-sendible <69461449+tim-sendible@users.noreply.github.com> Date: Wed, 5 Jan 2022 15:14:58 +0000 Subject: [PATCH] Create release.yaml --- .github/workflows/release.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..3d2b970 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,28 @@ +name: Release + +on: + release: + types: [created] + +jobs: + Deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v2 + - name: Get git tag + uses: little-core-labs/get-git-tag@v3.0.1 + - name: Login to GitHub Container Registry + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.CR_PAT }} + - name: Build and Push Docker Image + uses: docker/build-push-action@v2 + with: + push: true + tags: | + ghcr.io/${{ github.repository }}:${{ env.GIT_TAG_NAME }} + ghcr.io/${{ github.repository }}:stable + ghcr.io/${{ github.repository }}:latest