Skip to content

Commit

Permalink
♻️ci: refactor push-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Marukome0743 authored Feb 6, 2024
1 parent 132acde commit c2231a1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/push-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,13 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
load: ${{ github.event_name == 'pull_request_target' }}
platforms: ${{ github.event_name == 'push' && 'linux/amd64,linux/arm64' || 'linux/amd64' }}
push: ${{ github.event_name == 'push' && github.repository_owner == env.REPOSITORY_OWNER }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=${{ env.REPOSITORY }}:main
cache-to: type=inline
outputs: ${{ github.event_name == 'push' && 'type=image,name=target,annotation-index.org.opencontainers.image.description=caravan-kidstec multi-arch image' || '.' }}
outputs: ${{ github.event_name == 'push' && 'type=image,name=target,annotation-index.org.opencontainers.image.description=caravan-kidstec multi-arch image' || 'type=docker' }}
provenance: false

- name: Docker Scout
Expand Down

0 comments on commit c2231a1

Please sign in to comment.