Forgejo does not support build cache
All checks were successful
/ Monolith image (push) Successful in 2m0s

This commit is contained in:
signaryk 2024-07-14 17:26:53 -05:00
parent 6a9a344d9a
commit 73bd01f7b6

View file

@ -4,7 +4,7 @@ on:
- 'v*' - 'v*'
env: env:
GHCR_NAMESPACE: signaryk GHCR_NAMESPACE: sigb.us
PLATFORMS: linux/amd64 PLATFORMS: linux/amd64
FORGEJO_USER: signaryk FORGEJO_USER: signaryk
@ -37,8 +37,6 @@ jobs:
id: docker_build_monolith id: docker_build_monolith
uses: docker/build-push-action@v3 uses: docker/build-push-action@v3
with: with:
cache-from: type=registry,ref=git.sigb.us/${{ env.GHCR_NAMESPACE }}/dendrite:buildcache
cache-to: type=registry,ref=git.sigb.us/${{ env.GHCR_NAMESPACE }}/dendrite:buildcache,mode=max
context: . context: .
platforms: ${{ env.PLATFORMS }} platforms: ${{ env.PLATFORMS }}
push: true push: true
@ -52,12 +50,10 @@ jobs:
id: docker_build_monolith_release id: docker_build_monolith_release
uses: docker/build-push-action@v3 uses: docker/build-push-action@v3
with: with:
cache-from: type=gha
cache-to: type=gha,mode=max
context: . context: .
platforms: ${{ env.PLATFORMS }} platforms: ${{ env.PLATFORMS }}
push: true push: true
tags: | tags: |
git.sigb.us/${{ env.GHCR_NAMESPACE }}/dendrite-monolith:latest git.sigb.us/${{ env.GHCR_NAMESPACE }}/dendrite:latest
git.sigb.us/${{ env.GHCR_NAMESPACE }}/dendrite-monolith:stable git.sigb.us/${{ env.GHCR_NAMESPACE }}/dendrite:stable
git.sigb.us/${{ env.GHCR_NAMESPACE }}/dendrite-monolith:${{ env.RELEASE_VERSION }} git.sigb.us/${{ env.GHCR_NAMESPACE }}/dendrite:${{ env.RELEASE_VERSION }}