This commit is contained in:
1 parent
b80b53ee51
commit
6a8e7fcbcb
2 files changed
+10
-1
No files matched your search
@@ -5,6 +5,11 @@ name: Build and publish Docker image
|
|||||||
'on':
|
'on':
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
paths-ignore:
|
||||||
|
- 'docs/**'
|
||||||
|
- '**/*.md'
|
||||||
|
- 'dev/**'
|
||||||
|
- 'DB/**'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
|
|||||||
+5
-1
@@ -43,11 +43,15 @@ pull requests do not trigger this workflow.
|
|||||||
|
|
||||||
| Event | Behavior |
|
| Event | Behavior |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| Push to `main` | Build and push `:latest` |
|
| Push to `main` | Build and push `:latest`, unless only ignored paths changed |
|
||||||
| Manual run on `main` | Build and push `:latest` |
|
| Manual run on `main` | Build and push `:latest` |
|
||||||
| Manual run on another branch or tag | Job skipped |
|
| Manual run on another branch or tag | Job skipped |
|
||||||
| Pull request or tag push | No workflow run |
|
| Pull request or tag push | No workflow run |
|
||||||
|
|
||||||
|
Pushes changing only `docs/**`, `**/*.md`, `dev/**`, or `DB/**` skip the workflow.
|
||||||
|
Mixed changes still build if any file is outside those paths. Manual runs are
|
||||||
|
unaffected by path filters.
|
||||||
|
|
||||||
The workflow has three steps: checkout, registry login, and `docker build` /
|
The workflow has three steps: checkout, registry login, and `docker build` /
|
||||||
`docker push`. It does not publish version/commit tags or multi-platform images.
|
`docker push`. It does not publish version/commit tags or multi-platform images.
|
||||||
Use a runner with the same architecture as your deployment server.
|
Use a runner with the same architecture as your deployment server.
|
||||||
|
|||||||
Reference in new issue
Block a user