Skip to content

Commit

Permalink
Publish FDW to GH Container Registry. Closes #491
Browse files Browse the repository at this point in the history
  • Loading branch information
pskrbasu authored Sep 2, 2024
1 parent 9f4a6e8 commit 60fc88d
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
env:
PROJECT_ID: steampipe
IMAGE_NAME: fdw
CORE_REPO: us-docker.pkg.dev/steampipe/steampipe
CORE_REPO: ghcr.io/turbot/steampipe
ORG: turbot
CONFIG_SCHEMA_VERSION: "2020-11-18"
VERSION: ${{ github.event.inputs.release }}
Expand Down Expand Up @@ -45,22 +45,13 @@ jobs:
exit 1
fi
- name: Authenticate GCloud
uses: google-github-actions/auth@v2
# Login to GHCR
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
credentials_json: ${{ secrets.STEAMPIPE_REGISTRY_SA_KEY }}

- name: Configure GCloud CLI project
uses: 'google-github-actions/setup-gcloud@v2'
with:
project_id: ${{ env.PROJECT_ID }}

- name: Setup GCloud CLI
run: |-
gcloud config list
gcloud components install beta
gcloud components install alpha --quiet
gcloud beta auth configure-docker us-docker.pkg.dev
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GH_PUBLISH_ACCESS_TOKEN }}

- name: Verify ORAS installations
run: oras version
Expand Down Expand Up @@ -96,6 +87,7 @@ jobs:
echo $JSON_STRING > annotations.json
cat annotations.json
# Push to GHCR
- name: Push to registry
run: |-
REF="$CORE_REPO/$IMAGE_NAME:$VERSION"
Expand Down

0 comments on commit 60fc88d

Please sign in to comment.