Compare commits

...

2 Commits

Author SHA1 Message Date
bf47520d31 Try to make the cache work, take N
All checks were successful
Build and Publish Docker Container / build (push) Successful in 16m35s
2024-06-04 08:42:46 +01:00
fc1cea32b5 Pin docker/build-push-action@v5 and add ntfy.sh action 2024-06-03 21:12:02 +01:00

View File

@ -18,16 +18,6 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
# - name: Cache Docker layers
# uses: actions/cache@v3
# with:
# path: |
# /tmp/.buildx-cache.bookworm
# /tmp/.buildx-cache.latest
# key: ${{ runner.os }}-buildx-${{ github.sha }}
# restore-keys: |
# ${{ runner.os }}-buildx-
- name: Login to Docker
uses: docker/login-action@v1
with:
@ -36,7 +26,7 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and Push Docker image
uses: docker/build-push-action@master
uses: docker/build-push-action@v5
with:
context: .
push: true
@ -44,3 +34,11 @@ jobs:
tags: git.joshuacoles.me/${{ github.repository }}:latest,git.joshuacoles.me/${{ github.repository }}:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max
- uses: robiningelbrecht/ntfy-action@v1.0.0
name: Notify via ntfy.sh
if: always()
with:
url: ${{ secrets.NTFY_URL }}
topic: ${{ secrets.NTFY_TOPIC }}
job_status: ${{ job.status }}