Skip to content

Commit

Permalink
ci: parameterize docker image tags
Browse files Browse the repository at this point in the history
  • Loading branch information
xJonathanLEI committed Aug 31, 2024
1 parent 56475ba commit e1173dd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Set up Docker tags
id: tag_param
run: |
REPO="${{ github.repository }}"
echo "repo=${REPO@L}" >> "$GITHUB_OUTPUT"
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
Expand All @@ -91,5 +97,5 @@ jobs:
VERSION=${{ github.event.inputs.version_tag }}
COMMIT_SHA=${{ github.sha }}
tags: |
ghcr.io/erpc/erpc:latest
ghcr.io/erpc/erpc:${{ github.event.inputs.version_tag }}
ghcr.io/${{ steps.tag_param.outputs.repo }}:latest
ghcr.io/${{ steps.tag_param.outputs.repo }}:${{ github.event.inputs.version_tag }}

0 comments on commit e1173dd

Please sign in to comment.