diff --git a/.github/actions/publish-release/action.yaml b/.github/actions/publish-release/action.yaml index 71f39710..09b7cafa 100644 --- a/.github/actions/publish-release/action.yaml +++ b/.github/actions/publish-release/action.yaml @@ -14,6 +14,12 @@ inputs: trigger-action: description: "Action that triggered the release" required: true + gcloud-service-account: + description: "Service account key for Google Cloud" + required: true + replicated-api-token: + description: "API token for Replicated" + required: true gcloud-version: description: "Version of the Google Cloud SDK to use" @@ -38,14 +44,14 @@ runs: - name: Google Cloud Auth uses: google-github-actions/auth@v0 with: - credentials_json: ${{ secrets.CARTO_ARTIFACTS_SERVICE_ACCOUNT }} - project_id: ${{ input.artifacts-gcp-project-id }} + credentials_json: ${{ inputs.gcloud-service-account }} + project_id: ${{ inputs.artifacts-gcp-project-id }} # Step 2: Install Gcloud CLI - name: Google Cloud install uses: google-github-actions/setup-gcloud@v0 with: - project_id: ${{ input.chart-gcp-project-id }} + project_id: ${{ inputs.chart-gcp-project-id }} version: ${{ inputs.gcloud-version }} # Step 3: Install helm @@ -87,7 +93,7 @@ runs: shell: bash env: REPLICATED_APP: carto - REPLICATED_API_TOKEN: ${{ secrets.REPLICATED_API_TOKEN }} + REPLICATED_API_TOKEN: ${{ inputs.replicated-api-token }} run: | cp carto-${{ inputs.version }}*.tgz manifests/ replicated release create --auto \ diff --git a/.github/workflows/official-release.yaml b/.github/workflows/official-release.yaml index 5badcdc4..703bdb45 100644 --- a/.github/workflows/official-release.yaml +++ b/.github/workflows/official-release.yaml @@ -29,6 +29,8 @@ jobs: version: ${{ steps.release-info.outputs.version }} release-notes: "CARTO Self-Hosted ${{ steps.release-info.outputs.version }}" trigger-action: ${{ github.event.action }} + gcloud-service-account: ${{ secrets.CARTO_ARTIFACTS_SERVICE_ACCOUNT }} + replicated-api-token: ${{ secrets.REPLICATED_API_TOKEN }} - name: Slack notification if: github.event.action == 'released' diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index c3ecd16a..5562a16b 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -28,3 +28,5 @@ jobs: version: ${{ steps.release-info.outputs.version }} release-notes: "CARTO Self-Hosted ${{ steps.release-info.outputs.version }}" trigger-action: ${{ github.event.action }} + gcloud-service-account: ${{ secrets.CARTO_ARTIFACTS_SERVICE_ACCOUNT }} + replicated-api-token: ${{ secrets.REPLICATED_API_TOKEN }}