Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish FDW to GH Container Registry. Closes #491 #490

Merged
merged 4 commits into from
Sep 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading