Skip to content

Commit 60fc88d

Browse files
authored
Publish FDW to GH Container Registry. Closes #491
1 parent 9f4a6e8 commit 60fc88d

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
env:
1010
PROJECT_ID: steampipe
1111
IMAGE_NAME: fdw
12-
CORE_REPO: us-docker.pkg.dev/steampipe/steampipe
12+
CORE_REPO: ghcr.io/turbot/steampipe
1313
ORG: turbot
1414
CONFIG_SCHEMA_VERSION: "2020-11-18"
1515
VERSION: ${{ github.event.inputs.release }}
@@ -45,22 +45,13 @@ jobs:
4545
exit 1
4646
fi
4747
48-
- name: Authenticate GCloud
49-
uses: google-github-actions/auth@v2
48+
# Login to GHCR
49+
- name: Log in to the Container registry
50+
uses: docker/login-action@v2
5051
with:
51-
credentials_json: ${{ secrets.STEAMPIPE_REGISTRY_SA_KEY }}
52-
53-
- name: Configure GCloud CLI project
54-
uses: 'google-github-actions/setup-gcloud@v2'
55-
with:
56-
project_id: ${{ env.PROJECT_ID }}
57-
58-
- name: Setup GCloud CLI
59-
run: |-
60-
gcloud config list
61-
gcloud components install beta
62-
gcloud components install alpha --quiet
63-
gcloud beta auth configure-docker us-docker.pkg.dev
52+
registry: ghcr.io
53+
username: ${{ github.repository_owner }}
54+
password: ${{ secrets.GH_PUBLISH_ACCESS_TOKEN }}
6455

6556
- name: Verify ORAS installations
6657
run: oras version
@@ -96,6 +87,7 @@ jobs:
9687
echo $JSON_STRING > annotations.json
9788
cat annotations.json
9889
90+
# Push to GHCR
9991
- name: Push to registry
10092
run: |-
10193
REF="$CORE_REPO/$IMAGE_NAME:$VERSION"

0 commit comments

Comments
 (0)