Update docker.yml
parent
c46142385b
commit
95cdca9b43
|
|
@ -63,6 +63,11 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
echo "IMAGE_NAME=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
|
echo "IMAGE_NAME=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
|
||||||
|
|
||||||
|
- uses: int128/docker-build-cache-config-action@v1
|
||||||
|
id: cache
|
||||||
|
with:
|
||||||
|
image: ghcr.io/${{ github.repository }}/cache
|
||||||
|
|
||||||
# Build and push Docker image with Buildx (don't push on PR)
|
# Build and push Docker image with Buildx (don't push on PR)
|
||||||
# https://github.com/docker/build-push-action
|
# https://github.com/docker/build-push-action
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
|
|
@ -75,3 +80,5 @@ jobs:
|
||||||
tags: |
|
tags: |
|
||||||
ghcr.io/${{ env.IMAGE_NAME }}:latest
|
ghcr.io/${{ env.IMAGE_NAME }}:latest
|
||||||
${{ env.IMAGE_NAME }}:latest
|
${{ env.IMAGE_NAME }}:latest
|
||||||
|
cache-from: ${{ steps.cache.outputs.cache-from }}
|
||||||
|
cache-to: ${{ steps.cache.outputs.cache-to }}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue