Don't cache builds
This commit is contained in:
@@ -24,16 +24,12 @@ 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-to: type=inline
|
|
||||||
- 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,${{ steps.get-image-name.outputs.IMAGE_NAME }}:cargo-leptos-0-2-22"
|
tags: "${{ steps.get-image-name.outputs.IMAGE_NAME }}:latest,${{ steps.get-image-name.outputs.IMAGE_NAME }}:cargo-leptos-0-2-22"
|
||||||
cache-from: type=registry,ref=${{ steps.get-image-name.outputs.IMAGE_NAME }}:latest
|
|
||||||
cache-to: type=inline
|
|
||||||
|
|
||||||
docker-build-dx:
|
docker-build-dx:
|
||||||
runs-on: ubuntu-latest-docker
|
runs-on: ubuntu-latest-docker
|
||||||
@@ -58,8 +54,6 @@ jobs:
|
|||||||
file: Dockerfile.dx
|
file: Dockerfile.dx
|
||||||
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-to: type=inline
|
|
||||||
- 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'
|
||||||
@@ -67,5 +61,3 @@ jobs:
|
|||||||
file: Dockerfile.dx
|
file: Dockerfile.dx
|
||||||
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-to: type=inline
|
|
||||||
|
|||||||
Reference in New Issue
Block a user