mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-09 01:35:56 +01:00
Fix indiekit docker container
And build only when needed
This commit is contained in:
parent
d74a04c13d
commit
13f7a848ae
2 changed files with 12 additions and 1 deletions
9
.github/workflows/indiekit-docker.yml
vendored
9
.github/workflows/indiekit-docker.yml
vendored
|
@ -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
|
||||
|
|
4
.github/workflows/publish.yml
vendored
4
.github/workflows/publish.yml
vendored
|
@ -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 * * *'
|
||||
|
|
Loading…
Reference in a new issue