updated
This commit is contained in:
parent
370b9b11c0
commit
1d1f7da975
|
@ -67,13 +67,13 @@ jobs:
|
||||||
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
|
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
|
||||||
with:
|
with:
|
||||||
images: gtstef/filebrowser
|
images: gtstef/filebrowser
|
||||||
- name: Remove leading 'v' from tags
|
- name: Modify DOCKER_METADATA_OUTPUT_JSON
|
||||||
id: remove-v
|
id: modify-json
|
||||||
run: |
|
run: |
|
||||||
TAGS="${{ steps.meta.outputs.tags }}"
|
JSON="${{ steps.meta.outputs.DOCKER_METADATA_OUTPUT_JSON }}"
|
||||||
# Remove the 'v' prefix from each tag
|
# Use jq to remove 'v' from the version field
|
||||||
TAGS=$(echo "$TAGS" | sed 's/^v//g')
|
JSON=$(echo "$JSON" | jq '(.tags) |= sub("filebrowser:v"; "filebrowser:")')
|
||||||
echo "::set-output name=stripped_tags::$TAGS"
|
echo "::set-output name=modified_json::$JSON"
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
|
@ -81,5 +81,5 @@ jobs:
|
||||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.remove-v.outputs.stripped_tags }}
|
tags: ${{ steps.modify-json.outputs.modified_json | fromJSON | .tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.modify-json.outputs.modified_json | fromJSON | .labels }}
|
Loading…
Reference in New Issue