Skip to content

Commit acd5311

Browse files
committed
Publish images to github container registry
1 parent 36f6649 commit acd5311

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/deploy_to_development.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ concurrency:
55
group: development-concurrency
66
cancel-in-progress: true
77

8+
permissions:
9+
contents: read
10+
packages: write
11+
812
on:
913
push:
1014
branches:

.github/workflows/deploy_to_staging.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ concurrency:
55
group: staging-concurrency
66
cancel-in-progress: true
77

8+
permissions:
9+
contents: read
10+
packages: write
11+
812
on:
913
release:
1014
types: [published]
@@ -18,6 +22,19 @@ jobs:
1822
- name: Empty Step
1923
run: echo "Hello World"
2024

25+
build-and-push-release-to-ghcr:
26+
name: Build images in ghcr
27+
needs: trigger-github-deployment
28+
uses: ./.github/workflows/publish_component.yml
29+
with:
30+
Registry: ghcr.io
31+
ImageName: ${{ github.repository }}
32+
Tag: ${{ github.event.release.tag_name }}
33+
SecondaryTag: latest
34+
secrets:
35+
RegistryUsername: ${{ github.actor }}
36+
RegistryPassword: ${{ secrets.GITHUB_TOKEN }}
37+
2138
build-and-push-release-to-dev:
2239
name: Update container in dev with version tag
2340
needs: trigger-github-deployment

0 commit comments

Comments
 (0)