Compare commits
1 commit
master
...
feature/wo
Author | SHA1 | Date | |
---|---|---|---|
6e50039ade |
1 changed files with 7 additions and 1 deletions
|
@ -2,6 +2,12 @@ on:
|
||||||
push:
|
push:
|
||||||
pull_request:
|
pull_request:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
image:
|
||||||
|
description: Which image to build
|
||||||
|
default: none
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -38,7 +44,7 @@ jobs:
|
||||||
run: make push-${{matrix.tag}}
|
run: make push-${{matrix.tag}}
|
||||||
if: >-
|
if: >-
|
||||||
github.ref == 'refs/heads/master' &&
|
github.ref == 'refs/heads/master' &&
|
||||||
(github.event_name == 'workflow_dispatch' ||
|
((github.event_name == 'workflow_dispatch' && github.event.inputs.image == matrix.tag) ||
|
||||||
(steps.changed.outputs.any_changed == 'true' && github.event_name == 'push'))
|
(steps.changed.outputs.any_changed == 'true' && github.event_name == 'push'))
|
||||||
env:
|
env:
|
||||||
REGISTRY_PASSWORD: ${{secrets.FORGEJO_OCI_REGISTRY_PUSH_TOKEN}}
|
REGISTRY_PASSWORD: ${{secrets.FORGEJO_OCI_REGISTRY_PUSH_TOKEN}}
|
||||||
|
|
Loading…
Add table
Reference in a new issue