mirror of
https://github.com/1f349/dendrite.git
synced 2024-11-22 11:41:38 +00:00
Allow manual Docker tasks in GHA
This commit is contained in:
parent
1b389abbfd
commit
31a3c12682
17
.github/workflows/docker.yml
vendored
17
.github/workflows/docker.yml
vendored
@ -9,6 +9,7 @@ on:
|
|||||||
workflows: [Dendrite]
|
workflows: [Dendrite]
|
||||||
types: [completed]
|
types: [completed]
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
workflow_dispatch: # A build was manually requested
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DOCKER_NAMESPACE: matrixdotorg
|
DOCKER_NAMESPACE: matrixdotorg
|
||||||
@ -44,8 +45,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Build monolith image
|
- name: Build monolith image
|
||||||
if: >-
|
if: >-
|
||||||
github.event_name == 'workflow_run' &&
|
(github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') ||
|
||||||
github.event.workflow_run.conclusion == 'success'
|
github.event_name == 'workflow_dispatch'
|
||||||
id: docker_build_monolith
|
id: docker_build_monolith
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
@ -56,8 +57,8 @@ jobs:
|
|||||||
platforms: ${{ env.PLATFORMS }}
|
platforms: ${{ env.PLATFORMS }}
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
${{ env.DOCKER_NAMESPACE }}/dendrite-monolith:main
|
${{ env.DOCKER_NAMESPACE }}/dendrite-monolith:${{ github.ref_name }}
|
||||||
ghcr.io/${{ env.GHCR_NAMESPACE }}/dendrite-monolith:main
|
ghcr.io/${{ env.GHCR_NAMESPACE }}/dendrite-monolith:${{ github.ref_name }}
|
||||||
|
|
||||||
- name: Build release monolith image
|
- name: Build release monolith image
|
||||||
if: github.event_name == 'release' # Only for GitHub releases
|
if: github.event_name == 'release' # Only for GitHub releases
|
||||||
@ -103,8 +104,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Build polylith image
|
- name: Build polylith image
|
||||||
if: >-
|
if: >-
|
||||||
github.event_name == 'workflow_run' &&
|
(github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') ||
|
||||||
github.event.workflow_run.conclusion == 'success'
|
github.event_name == 'workflow_dispatch'
|
||||||
id: docker_build_polylith
|
id: docker_build_polylith
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
@ -115,8 +116,8 @@ jobs:
|
|||||||
platforms: ${{ env.PLATFORMS }}
|
platforms: ${{ env.PLATFORMS }}
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
${{ env.DOCKER_NAMESPACE }}/dendrite-polylith:main
|
${{ env.DOCKER_NAMESPACE }}/dendrite-polylith:${{ github.ref_name }}
|
||||||
ghcr.io/${{ env.GHCR_NAMESPACE }}/dendrite-polylith:main
|
ghcr.io/${{ env.GHCR_NAMESPACE }}/dendrite-polylith:${{ github.ref_name }}
|
||||||
|
|
||||||
- name: Build release polylith image
|
- name: Build release polylith image
|
||||||
if: github.event_name == 'release' # Only for GitHub releases
|
if: github.event_name == 'release' # Only for GitHub releases
|
||||||
|
Loading…
Reference in New Issue
Block a user