Skip to content

Commit

Permalink
Modified to push generated image to both registries
Browse files Browse the repository at this point in the history
  • Loading branch information
sharonsyh committed Aug 3, 2024
1 parent b923c02 commit 76596e8
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/push_docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,12 @@ jobs:
context: .
file: docker/Dockerfile
labels: ${{ steps.meta.outputs.labels }}
cache-from: |
type=registry,ref=mlenergy/zeus:buildcache
type=registry,ref=${{ env.SECONDARY_REGISTRY_IMAGE }}:buildcache
cache-to: |
type=registry,ref=mlenergy/zeus:buildcache,mode=max
type=registry,ref=${{ env.SECONDARY_REGISTRY_IMAGE }}:buildcache
cache-from: type=registry,ref=mlenergy/zeus:buildcache
cache-to: type=registry,ref=mlenergy/zeus:buildcache,mode=max
platforms: ${{ matrix.platform }}
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true
outputs: |
type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true
type=image,name=${{ env.ADDITIONAL_REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true
- name: Export digest
run: |
mkdir -p /tmp/digests
Expand Down

0 comments on commit 76596e8

Please sign in to comment.