1
0
mirror of https://github.com/bplein/factorio-docker.git synced 2024-11-24 08:42:31 +02:00

Update docker-publish-github.yml

This commit is contained in:
Bill Plein 2023-03-15 17:38:50 -05:00 committed by GitHub
parent 139c318920
commit 9c8ab45915
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,7 @@ jobs:
echo "VERSION=$VERSION" >> $GITHUB_ENV
TAGS=$((<buildinfo.json jq -r '.[] | .tags | select( index("latest"))|.[]| @sh')| tr '\n' ','| tr -d \'|sed 's/\(.*\),/\1 /')
echo "TAGS=$TAGS" >> $GITHUB_ENV
SHA256=$(<buildinfo.json | jq -r --arg VERSION "$VERSION" '.$VERSION | .sha256')
SHA256=$(<buildinfo.json | jq -r --arg version $VERSION '.[$version] | .sha256')
echo "SHA256=$SHA256" >> $GITHUB_ENV
- name: Show versions and tags
@ -95,7 +95,7 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: VERSION=${{ env.VERSION }}
build-args: VERSION=${{ env.VERSION }} SHA256=${{ env.SHA256 }}
# Sign the resulting Docker image digest except on PRs.