Compare commits

...

2 Commits

Author SHA1 Message Date
481d9109eb Merge pull request 'Fix docker-build caching' (#188) from 186-fix-dockerbuild-caching into main
All checks were successful
Push Workflows / nix-build (push) Successful in 20m7s
Push Workflows / docs (push) Successful in 39s
Push Workflows / test (push) Successful in 44s
Push Workflows / leptos-test (push) Successful in 1m3s
Push Workflows / build (push) Successful in 1m46s
Push Workflows / docker-build (push) Successful in 1m29s
Reviewed-on: #188
2024-12-20 19:09:41 +00:00
050cab6d46
Use GitHub Actions cache
All checks were successful
Push Workflows / test (push) Successful in 59s
Push Workflows / docs (push) Successful in 1m0s
Push Workflows / build (push) Successful in 1m17s
Push Workflows / leptos-test (push) Successful in 1m42s
Push Workflows / nix-build (push) Successful in 17m42s
Push Workflows / docker-build (push) Successful in 21m34s
2024-12-20 13:46:36 -05:00

View File

@ -36,16 +36,16 @@ jobs:
with: with:
push: true push: true
tags: "${{ steps.get-image-name.outputs.IMAGE_NAME }}:${{ gitea.sha }}" tags: "${{ steps.get-image-name.outputs.IMAGE_NAME }}:${{ gitea.sha }}"
cache-from: type=registry,ref=${{ steps.get-image-name.outputs.IMAGE_NAME }}:${{ gitea.sha }} cache-from: type=gha
cache-to: type=inline cache-to: type=gha,mode=max
- name: Build and push Docker image with "latest" tag - name: Build and push Docker image with "latest" tag
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
if: gitea.ref == 'refs/heads/main' if: gitea.ref == 'refs/heads/main'
with: with:
push: true push: true
tags: "${{ steps.get-image-name.outputs.IMAGE_NAME }}:latest" tags: "${{ steps.get-image-name.outputs.IMAGE_NAME }}:latest"
cache-from: type=registry,ref=${{ steps.get-image-name.outputs.IMAGE_NAME }}:latest cache-from: type=gha
cache-to: type=inline cache-to: type=gha,mode=max
test: test:
runs-on: libretunes-cicd runs-on: libretunes-cicd