mirror of
https://github.com/matrix-org/dendrite.git
synced 2024-11-29 09:41:57 -06:00
Update Docker workflow some more
This commit is contained in:
parent
f2e550efd8
commit
87298985a7
18
.github/workflows/docker.yml
vendored
18
.github/workflows/docker.yml
vendored
|
@ -5,10 +5,10 @@ name: "Docker"
|
||||||
on:
|
on:
|
||||||
release: # A GitHub release was published
|
release: # A GitHub release was published
|
||||||
types: [published]
|
types: [published]
|
||||||
workflow_run: # The Dendrite pipeline completed successfully on main
|
#workflow_run: # The Dendrite pipeline completed successfully on main
|
||||||
workflows: [Dendrite]
|
# workflows: [Dendrite]
|
||||||
types: [completed]
|
# types: [completed]
|
||||||
branches: [main]
|
# branches: [main]
|
||||||
workflow_dispatch: # A build was manually requested
|
workflow_dispatch: # A build was manually requested
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
@ -21,6 +21,9 @@ jobs:
|
||||||
monolith:
|
monolith:
|
||||||
name: Monolith image
|
name: Monolith image
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
@ -40,7 +43,7 @@ jobs:
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Build monolith image
|
- name: Build monolith image
|
||||||
|
@ -80,6 +83,9 @@ jobs:
|
||||||
polylith:
|
polylith:
|
||||||
name: Polylith image
|
name: Polylith image
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
@ -99,7 +105,7 @@ jobs:
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Build polylith image
|
- name: Build polylith image
|
||||||
|
|
Loading…
Reference in a new issue