1
0
mirror of https://github.com/bplein/factorio-docker.git synced 2024-11-28 08:58:42 +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 echo "VERSION=$VERSION" >> $GITHUB_ENV
TAGS=$((<buildinfo.json jq -r '.[] | .tags | select( index("latest"))|.[]| @sh')| tr '\n' ','| tr -d \'|sed 's/\(.*\),/\1 /') TAGS=$((<buildinfo.json jq -r '.[] | .tags | select( index("latest"))|.[]| @sh')| tr '\n' ','| tr -d \'|sed 's/\(.*\),/\1 /')
echo "TAGS=$TAGS" >> $GITHUB_ENV 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 echo "SHA256=$SHA256" >> $GITHUB_ENV
- name: Show versions and tags - name: Show versions and tags
@ -95,7 +95,7 @@ jobs:
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha cache-from: type=gha
cache-to: type=gha,mode=max 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. # Sign the resulting Docker image digest except on PRs.