Merge pull request #83 from actions/update-docker-major
Add steps to major version release to update Docker major tag
This commit is contained in:
@@ -51,9 +51,23 @@ jobs:
|
|||||||
outputs:
|
outputs:
|
||||||
major_tag: ${{ steps.update-major-tag.outputs.major-tag }}
|
major_tag: ${{ steps.update-major-tag.outputs.major-tag }}
|
||||||
steps:
|
steps:
|
||||||
- name: Update the ${{ env.TAG_NAME }} tag
|
- name: Update the ${{ env.TAG_NAME }} major tag
|
||||||
id: update-major-tag
|
id: update-major-tag
|
||||||
uses: actions/[email protected]
|
uses: actions/[email protected]
|
||||||
with:
|
with:
|
||||||
source-tag: ${{ env.TAG_NAME }}
|
source-tag: ${{ env.TAG_NAME }}
|
||||||
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
|
|
||||||
|
# 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
|
||||||
|
|||||||
Reference in New Issue
Block a user