Skip to content

Commit

Permalink
cache more 4
Browse files Browse the repository at this point in the history
  • Loading branch information
mkuratczyk committed Jan 24, 2025
1 parent d31bbc4 commit 2704aed
Showing 1 changed file with 2 additions and 39 deletions.
41 changes: 2 additions & 39 deletions .github/workflows/oci-make.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,44 +102,7 @@ jobs:
context: packaging/docker-image
platforms: linux/amd64, linux/arm64
tags: ${{ steps.meta.outputs.tags }}
cache-to: type=gha,mode=max
cache-from: type=gha
cache-to: type=gha,mode=max,scope=${{ matrix.otp_version }}
cache-from: type=gha,scope=${{ matrix.otp_version }}
build-args:
OTP_VERSION=${{ matrix.otp_version }}

# merge:
# needs:
# - build
# runs-on: ubuntu-latest
# if: ${{ needs.build-package-generic-unix.outputs.authorized }} == 'true'
# steps:
# - name: Download digests
# uses: actions/download-artifact@v4
# with:
# path: /tmp/digests
# pattern: digests-*
# merge-multiple: true
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3
# - name: Docker meta
# id: meta
# uses: docker/metadata-action@v5
# with:
# images: ${{ env.REGISTRY_IMAGE }}
# tags: |
# type=ref,event=branch
# type=ref,event=pr
# type=sha,format=long
# - name: Login to Docker Hub
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_PASSWORD }}
# - name: Create manifest list and push
# working-directory: /tmp/digests
# run: |
# docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
# $(printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *)
# - name: Inspect image
# run: |
# docker buildx imagetools inspect ${{ env.REGISTRY_IMAGE }}:${{ steps.meta.outputs.version }}

0 comments on commit 2704aed

Please sign in to comment.