mirror of
https://github.com/wimpysworld/stream-sprout
synced 2026-03-14 14:45:50 +01:00
ci: use the actual stream-sprout version for tagging container releases
This commit is contained in:
parent
46d611bbda
commit
4495463a74
2 changed files with 12 additions and 2 deletions
7
.github/workflows/publish-release.yml
vendored
7
.github/workflows/publish-release.yml
vendored
|
|
@ -97,6 +97,11 @@ jobs:
|
|||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Get stream-sprout version 🔢
|
||||
id: get_version
|
||||
run: |
|
||||
STREAM_SPROUT_VER=$(grep "^readonly VERSION" stream-sprout | cut -d'"' -f2)
|
||||
echo "STREAM_SPROUT_VER=$STREAM_SPROUT_VER" >> $GITHUB_ENV
|
||||
- name: "Build Container 🐋"
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
|
|
@ -105,7 +110,7 @@ jobs:
|
|||
push: true
|
||||
tags: |
|
||||
ghcr.io/${{ github.repository }}:latest-alpine
|
||||
ghcr.io/${{ github.repository }}:${{ github.ref_name }}-alpine
|
||||
ghcr.io/${{ github.repository }}:${{ env.STREAM_SPROUT_VER }}-alpine
|
||||
ghcr.io/${{ github.repository }}:${{ github.sha }}-alpine
|
||||
platforms: linux/amd64, linux/arm64
|
||||
- name: Logout from Container Registry
|
||||
|
|
|
|||
|
|
@ -78,6 +78,11 @@ jobs:
|
|||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Get stream-sprout version 🔢
|
||||
id: get_version
|
||||
run: |
|
||||
STREAM_SPROUT_VER=$(grep "^readonly VERSION" stream-sprout | cut -d'"' -f2)
|
||||
echo "STREAM_SPROUT_VER=$STREAM_SPROUT_VER" >> $GITHUB_ENV
|
||||
- name: "Build Container 🐋"
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
|
|
@ -86,7 +91,7 @@ jobs:
|
|||
push: false
|
||||
tags: |
|
||||
ghcr.io/${{ github.repository }}:latest-alpine
|
||||
ghcr.io/${{ github.repository }}:${{ github.ref_name }}-alpine
|
||||
ghcr.io/${{ github.repository }}:${{ env.STREAM_SPROUT_VER }}-alpine
|
||||
ghcr.io/${{ github.repository }}:${{ github.sha }}-alpine
|
||||
platforms: linux/amd64, linux/arm64
|
||||
- name: Logout from Container Registry
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue