Skip to content

Commit 7afa3ef

Browse files
committed
Add ghcr build
1 parent f500d94 commit 7afa3ef

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/publish-ghcr-container.yaml

+8-8
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
- '*'
66

77
env:
8-
REGISTRY: ${{ vars.GCR_PREFIX }}
8+
REGISTRY: ghcr.io
99
IMAGE_NAME: ${{ github.repository }}
1010

1111
jobs:
@@ -44,6 +44,12 @@ jobs:
4444
- name: Set up Docker Buildx
4545
uses: docker/setup-buildx-action@v3
4646

47+
- name: Login to GHCR
48+
uses: docker/login-action@v3
49+
with:
50+
registry: ${{ env.REGISTRY }}
51+
username: ${{ github.actor }}
52+
password: ${{ secrets.GITHUB_TOKEN }}
4753

4854
- name: Build and export to local docker for testing
4955
uses: docker/build-push-action@v6
@@ -58,16 +64,10 @@ jobs:
5864
run: |
5965
bash postgres-appliance/tests/test_spilo.sh
6066
61-
- name: Authenticate to Google Cloud
62-
uses: google-github-actions/auth@v1
63-
with:
64-
credentials_json: '${{ secrets.GCR_CREDENTIALS }}'
65-
- run: gcloud auth configure-docker -q gcr.io
66-
6767
- name: Build arm64 additionaly and push multiarch image to ghcr
6868
uses: docker/build-push-action@v6
6969
with:
7070
context: "postgres-appliance/"
7171
push: true
7272
tags: "${{ steps.image.outputs.NAME }}"
73-
platforms: linux/amd64,linux/arm64
73+
platforms: linux/amd64

0 commit comments

Comments
 (0)