Skip to content

Commit

Permalink
feat(gha): add update-tag manual step
Browse files Browse the repository at this point in the history
  • Loading branch information
chuhlomin committed Oct 15, 2023
1 parent 0c6afbd commit 0ca0022
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,20 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}
image_name: ${{ env.DOCKER_IMAGE }}
tags: ${{ env.DOCKER_IMAGE }}:${{ steps.get_tag.outputs.tag }}

update-tag:
runs-on: ubuntu-latest
environment: v1 # requires approval
needs: release
if: startsWith(github.ref, 'refs/tags/v1.')
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Update v1 tag
shell: bash
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "gha@chuhlomin.com"
git tag -f v1
git push -f origin v1

0 comments on commit 0ca0022

Please sign in to comment.