Update Docker workflow some more

This commit is contained in:
Neil Alexander 2022-03-25 09:05:06 +00:00
parent f2e550efd8
commit 87298985a7
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -5,10 +5,10 @@ name: "Docker"
on:
release: # A GitHub release was published
types: [published]
workflow_run: # The Dendrite pipeline completed successfully on main
workflows: [Dendrite]
types: [completed]
branches: [main]
#workflow_run: # The Dendrite pipeline completed successfully on main
# workflows: [Dendrite]
# types: [completed]
# branches: [main]
workflow_dispatch: # A build was manually requested
env:
@ -21,6 +21,9 @@ jobs:
monolith:
name: Monolith image
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v2
@ -40,7 +43,7 @@ jobs:
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build monolith image
@ -80,6 +83,9 @@ jobs:
polylith:
name: Polylith image
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v2
@ -99,7 +105,7 @@ jobs:
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build polylith image