aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2022-03-25 09:05:06 +0000
committerNeil Alexander <neilalexander@users.noreply.github.com>2022-03-25 09:05:06 +0000
commit87298985a7f94724ab467ab9814bd6c41fcb3027 (patch)
tree5dd95d31bb1b728cb033b313c9e4ae6df9b33b79 /.github
parentf2e550efd832662e6c032bebfef4a68da0b4c8ee (diff)
Update Docker workflow some more
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/docker.yml18
1 files changed, 12 insertions, 6 deletions
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
index 2c5d9e5e..5c59a02a 100644
--- a/.github/workflows/docker.yml
+++ b/.github/workflows/docker.yml
@@ -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