Skip to content

Commit

Permalink
chore(ci): enable full image version
Browse files Browse the repository at this point in the history
  • Loading branch information
doublecompile committed Apr 19, 2024
1 parent 616b36c commit 270b84a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,13 @@ jobs:
- "3.17"

steps:
- name: Prepare
env:
ALPINE_VERSION: ${{ matrix.alpine_version }}
run: |
alpine_full_version=$(docker run --rm alpine:$ALPINE_VERSION cat /etc/os-release | grep VERSION_ID | cut -d'=' -f2)
echo "ALPINE_FULL_VERSION=$alpine_full_version" >> $GITHUB_ENV
- name: Download digests
uses: actions/download-artifact@v4
with:
Expand All @@ -105,9 +112,10 @@ jobs:
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY_IMAGE }}
# type=raw,value=latest,enabled=${{ matrix.alpine_version == '3.19' }}
tags: |
type=raw,value=latest,enabled=${{ matrix.alpine_version == '3.19' }}
type=raw,value=${{ env.IMAGE_VERSION }}-alpine-${{ matrix.alpine_version }}
type=raw,value=${{ env.IMAGE_VERSION }}-alpine-${{ env.ALPINE_FULL_VERSION }}
- name: Login to Docker Hub
uses: docker/login-action@v3
Expand Down

0 comments on commit 270b84a

Please sign in to comment.