Skip to content

Commit fefaafa

Browse files
authored
Merge pull request #882 from PolicyEngine/feat/launch-docker-on-ghcr
Deploy Docker image to GHCR and GCR after build
2 parents 7561ede + f2828d3 commit fefaafa

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/deploy-production.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,23 @@ jobs:
8383
username: _json_key
8484
password: ${{ secrets.GCP_SA_KEY }}
8585

86+
- name: Log in to GitHub Container Registry
87+
uses: docker/login-action@v2
88+
with:
89+
registry: ghcr.io
90+
username: ${{ github.actor }}
91+
password: ${{ secrets.GITHUB_TOKEN }}
92+
8693
- name: Set up Docker Buildx
8794
uses: docker/setup-buildx-action@v3
8895

8996
- name: Extract metadata
9097
id: meta
9198
uses: docker/metadata-action@v5
9299
with:
93-
images: ${{ env.IMAGE_NAME }}
100+
images: |
101+
${{ env.IMAGE_NAME }}
102+
ghcr.io/${{ github.repository }}
94103
tags: |
95104
type=sha,prefix=,suffix=
96105
type=raw,value=latest,enable={{is_default_branch}}

changelog_entry.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- bump: patch
2+
changes:
3+
added:
4+
- Production Docker image now deploys to both GitHub Container Registry and Google Artifact Registry

0 commit comments

Comments
 (0)