Skip to content

Commit

Permalink
fixed cache portion
Browse files Browse the repository at this point in the history
  • Loading branch information
romer8 committed May 6, 2024
1 parent d33c083 commit 7fe190c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_and_push_dev_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
echo "TAG_LATEST=dev_latest" >> $GITHUB_ENV
- name: Set matrix for build
id: set-matrix
run: echo "::set-output name=matrix::{\"include\":[{\"platform\":\"linux/amd64\",\"tag\":\"${{ env.DOCKER_HUB_ORG }}/${{ env.DOCKER_REPO }}:${{ env.TAG_LATEST }}_amd64\"},{\"platform\":\"linux/arm64\",\"tag\":\"${{ env.DOCKER_HUB_ORG }}/${{ env.DOCKER_REPO }}:${{ env.TAG_LATEST }}_arm64\"}]}"
run: echo "::set-output name=matrix::{\"include\":[{\"platform\":\"linux/amd64\",\"tag\":\"${{ env.DOCKER_HUB_ORG }}/${{ env.DOCKER_REPO }}:dev_latest-amd64\"},{\"platform\":\"linux/arm64\",\"tag\":\"${{ env.DOCKER_HUB_ORG }}/${{ env.DOCKER_REPO }}:dev_latest-arm64\"}]}"
# build image
build:
needs: setup
Expand Down Expand Up @@ -62,8 +62,8 @@ jobs:
push: true
tags: ${{ matrix.tag }}
platforms: ${{ matrix.platform }}
cache-from: type=registry,ref=${{ env.DOCKER_HUB_ORG }}/${{ env.DOCKER_REPO }}-dev-${{ matrix.platform }}-cache:latest
cache-to: type=registry,ref=${{ env.DOCKER_HUB_ORG }}/${{ env.DOCKER_REPO }}-dev-${{ matrix.platform }}-cache:latest,mode=max
cache-from: type=registry,ref=${{ matrix.tag }}-cache:latest
cache-to: type=registry,ref=${{ matrix.tag }}-cache:latest,mode=max

cleanup:
needs: [build]
Expand Down

0 comments on commit 7fe190c

Please sign in to comment.