Skip to content

Commit

Permalink
fixed latest push
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvAmBass committed Jul 6, 2024
1 parent 32325ef commit 8ac7028
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ jobs:
# against the sigstore community Fulcio instance.
run: echo "${{ steps.meta.outputs.tags }}" | xargs -I {} cosign sign --yes {}@${{ steps.build-and-push-tagged.outputs.digest }}

- name: Build Docker Latest Tag
if: ${{ !endsWith(steps.docker_version_tag.outputs.tag, 'latest') }}
id: docker_latest_tag
run: |
$(echo "tag=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest" | tr '[:upper:]' '[:lower:]') >> $GITHUB_OUTPUT
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push Docker image as latest
Expand All @@ -106,7 +112,7 @@ jobs:
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: latest
tags: ${{ steps.docker_latest_tag.outputs.tag }}
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
Expand Down

0 comments on commit 8ac7028

Please sign in to comment.