mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-09 18:06:07 +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"]
|
branches: ["main"]
|
||||||
paths:
|
paths:
|
||||||
- indiekit/**
|
- indiekit/**
|
||||||
|
- .github/workflows/indiekit-docker.yml
|
||||||
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
attestations: write
|
id-token: write
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: "docker"
|
group: "docker"
|
||||||
|
@ -49,3 +50,9 @@ jobs:
|
||||||
push: true
|
push: true
|
||||||
tags: indiekit
|
tags: indiekit
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
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:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ["main"]
|
branches: ["main"]
|
||||||
|
paths-ignore:
|
||||||
|
- indiekit/**
|
||||||
|
- .github/workflows/indiekit-docker.yml
|
||||||
|
- tools/**
|
||||||
schedule:
|
schedule:
|
||||||
# Rebuild every day, to update 'year relative' dates, change now page & calendar
|
# Rebuild every day, to update 'year relative' dates, change now page & calendar
|
||||||
- cron: '0 0 * * *'
|
- cron: '0 0 * * *'
|
||||||
|
|
Loading…
Reference in a new issue