Compare commits
2 Commits
562ce29ca1
...
c5433a23ee
| Author | SHA1 | Date | |
|---|---|---|---|
| c5433a23ee | |||
| fb705c234f |
@@ -1,10 +1,30 @@
|
|||||||
name: Build and publish container
|
name: Build and publish container
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
# On merge to main, only build/release when image-affecting files change;
|
||||||
|
# CI-config, Renovate-config and docs changes do not produce a new image.
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
paths:
|
||||||
|
- 'Dockerfile'
|
||||||
|
- 'default.conf'
|
||||||
|
- 'index.html'
|
||||||
|
- 'styles.css'
|
||||||
|
- 'script.js'
|
||||||
|
- 'messages.js'
|
||||||
|
- '.dockerignore'
|
||||||
|
# Pull requests always run (the build is a required check); no path filter.
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
# A newer run cancels an older in-flight run in the same group (keyed by ref),
|
||||||
|
# so a fresh merge to main supersedes the previous build and only the latest
|
||||||
|
# release is produced, avoiding tags that would be immediately replaced. Each
|
||||||
|
# pull request likewise supersedes only its own earlier runs.
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
|
|||||||
Reference in New Issue
Block a user