Pin docker/build-push-action@v5 and add ntfy.sh action
This commit is contained in:
parent
92462bd316
commit
fc1cea32b5
28
.github/workflows/build.yml
vendored
28
.github/workflows/build.yml
vendored
@ -18,15 +18,15 @@ jobs:
|
|||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
# - name: Cache Docker layers
|
# - name: Cache Docker layers
|
||||||
# uses: actions/cache@v3
|
# uses: actions/cache@v3
|
||||||
# with:
|
# with:
|
||||||
# path: |
|
# path: |
|
||||||
# /tmp/.buildx-cache.bookworm
|
# /tmp/.buildx-cache.bookworm
|
||||||
# /tmp/.buildx-cache.latest
|
# /tmp/.buildx-cache.latest
|
||||||
# key: ${{ runner.os }}-buildx-${{ github.sha }}
|
# key: ${{ runner.os }}-buildx-${{ github.sha }}
|
||||||
# restore-keys: |
|
# restore-keys: |
|
||||||
# ${{ runner.os }}-buildx-
|
# ${{ runner.os }}-buildx-
|
||||||
|
|
||||||
- name: Login to Docker
|
- name: Login to Docker
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
@ -36,7 +36,7 @@ jobs:
|
|||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
- name: Build and Push Docker image
|
- name: Build and Push Docker image
|
||||||
uses: docker/build-push-action@master
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
@ -44,3 +44,11 @@ jobs:
|
|||||||
tags: git.joshuacoles.me/${{ github.repository }}:latest,git.joshuacoles.me/${{ github.repository }}:${{ github.sha }}
|
tags: git.joshuacoles.me/${{ github.repository }}:latest,git.joshuacoles.me/${{ github.repository }}:${{ github.sha }}
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
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 }}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user