Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #83 from actions/update-docker-major
Add steps to major version release to update Docker major tag
James M. Greene authored and GitHub committed Apr 19, 2023
2 parents 98742cd + cc959c8 commit 37c0d29
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/release.yml
@@ -51,9 +51,23 @@ jobs:
outputs:
major_tag: ${{ steps.update-major-tag.outputs.major-tag }}
steps:
- name: Update the ${{ env.TAG_NAME }} tag
id: update-major-tag
uses: actions/publish-action@v0.2.2
with:
source-tag: ${{ env.TAG_NAME }}
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
- name: Update the ${{ env.TAG_NAME }} major tag
id: update-major-tag
uses: actions/publish-action@v0.2.2
with:
source-tag: ${{ env.TAG_NAME }}

# Login to the GHCR Docker registry
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Update Docker image tag
env:
NEW_TAG: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.update-major-tag.outputs.major-tag }}
SOURCE_TAG: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TAG_NAME }}
run: |
docker buildx imagetools create --tag $NEW_TAG $SOURCE_TAG

0 comments on commit 37c0d29

Please sign in to comment.