Fix indiekit docker container

And build only when needed
This commit is contained in:
JP Hastings-Spital 2024-07-15 16:28:45 +01:00
parent d74a04c13d
commit 13f7a848ae
2 changed files with 12 additions and 1 deletions

View file

@ -5,13 +5,14 @@ on:
branches: ["main"]
paths:
- indiekit/**
- .github/workflows/indiekit-docker.yml
workflow_dispatch:
permissions:
contents: read
packages: write
attestations: write
id-token: write
concurrency:
group: "docker"
@ -49,3 +50,9 @@ jobs:
push: true
tags: indiekit
labels: ${{ steps.meta.outputs.labels }}
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true

View file

@ -3,6 +3,10 @@ name: Deploy Hugo site to Pages
on:
push:
branches: ["main"]
paths-ignore:
- indiekit/**
- .github/workflows/indiekit-docker.yml
- tools/**
schedule:
# Rebuild every day, to update 'year relative' dates, change now page & calendar
- cron: '0 0 * * *'