1
0
mirror of https://github.com/bplein/factorio-docker.git synced 2025-02-21 19:19:40 +02:00

Update docker-publish-github.yml

This commit is contained in:
Bill Plein 2023-03-15 18:35:03 -05:00 committed by GitHub
parent ab0778b172
commit 4d5acd6146
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,7 +71,7 @@ jobs:
run: |
VERSION=$(cat buildinfo.json | jq -r '.[] | .tags | select( index("latest"))|.[0]')
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')| awk '{print "ghcr.io/bplein/factorio-docker:" $0}' | tr '\n' ','| tr -d \'|sed 's/\(.*\),/\1 /')
echo "TAGS=$TAGS" >> $GITHUB_ENV
SHA256=$(<buildinfo.json jq -r --arg version $VERSION '.[$version] | .sha256')
echo "SHA256=$SHA256" >> $GITHUB_ENV