mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-17 21:54:00 +02:00
Merge pull request #312 from maxdorninger/fix-workflows
fix: extract version number without 'v'
This commit is contained in:
4
.github/workflows/build-push-backend.yml
vendored
4
.github/workflows/build-push-backend.yml
vendored
@@ -185,6 +185,8 @@ jobs:
|
||||
VERSION="dev-${DATE_STAMP}-${{ github.run_number }}"
|
||||
fi
|
||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||
VERSION_NO_V=${VERSION#v}
|
||||
echo "version_no_v=$VERSION_NO_V" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Extract metadata (tags)
|
||||
id: meta
|
||||
@@ -209,4 +211,4 @@ jobs:
|
||||
|
||||
- name: Inspect image
|
||||
run: |
|
||||
docker buildx imagetools inspect ghcr.io/${{ github.repository_owner }}/${{ steps.repo_name.outputs.name }}/mediamanager:${{ steps.version.outputs.version }}
|
||||
docker buildx imagetools inspect ghcr.io/${{ github.repository_owner }}/${{ steps.repo_name.outputs.name }}/mediamanager:${{ steps.version.outputs.version_no_v }}
|
||||
@@ -149,6 +149,8 @@ jobs:
|
||||
VERSION="dev-${DATE_STAMP}-${{ github.run_number }}"
|
||||
fi
|
||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||
VERSION_NO_V=${VERSION#v}
|
||||
echo "version_no_v=$VERSION_NO_V" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Extract metadata (tags)
|
||||
id: meta
|
||||
@@ -173,4 +175,4 @@ jobs:
|
||||
|
||||
- name: Inspect image
|
||||
run: |
|
||||
docker buildx imagetools inspect ghcr.io/${{ github.repository_owner }}/${{ steps.repo_name.outputs.name }}/metadata_relay:${{ steps.version.outputs.version }}
|
||||
docker buildx imagetools inspect ghcr.io/${{ github.repository_owner }}/${{ steps.repo_name.outputs.name }}/metadata_relay:${{ steps.version.outputs.version_no_v }}
|
||||
Reference in New Issue
Block a user