diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 330c4281..c7e7ca93 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 }} @@ -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 @@ -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"