updated workflow

This commit is contained in:
Graham Steffaniak 2023-10-10 08:46:33 -05:00
parent 6695a88f6f
commit 3f7caf97c5
1 changed files with 4 additions and 4 deletions

View File

@ -70,10 +70,10 @@ jobs:
- name: Modify DOCKER_METADATA_OUTPUT_JSON - name: Modify DOCKER_METADATA_OUTPUT_JSON
id: modify-json id: modify-json
run: | run: |
JSON="${{ steps.meta.outputs.DOCKER_METADATA_OUTPUT_JSON }}" JSON="${{ steps.meta.outputs.tags }}"
# Use jq to remove 'v' from the version field # Use jq to remove 'v' from the version field
JSON=$(echo "$JSON" | jq '(.tags) |= sub("filebrowser:v"; "filebrowser:")') JSON=$(echo "$JSON" |sed -s '/filebrowser:v/filebrowser:/g')
echo "::set-output name=modified_json::$JSON" echo "::set-output name=cleaned_tag::$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.modify-json.outputs.modified_json }} tags: ${{ steps.modify-json.outputs.cleaned_tag }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}