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

Update docker-publish-github2.yml

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

View File

@ -66,6 +66,18 @@ jobs:
with: with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Extract all versions from buildinfo.json
id: get-versions
run: |
version=$(jq -r '.[] | .tags | select( index("latest"))|.[]' buildinfo.json)
echo ${{ steps.get-versions.outputs.version }}
- name: Show versions
run: |
version="${{ steps.get-versions.outputs.value }}"
for version in $versions; do
echo "$version"
done
# Build and push Docker image with Buildx (don't push on PR) # Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action # https://github.com/docker/build-push-action
- name: Build and push Docker image - name: Build and push Docker image