Assets upload #40
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Assets upload | |
on: | |
create: | |
tags: | |
- 'v?[0-9]+.[0-9]+.[0-9]+(?:-.*)?' | |
permissions: | |
id-token: write | |
contents: read | |
jobs: | |
upload-assets: | |
name: "Upload assets" | |
runs-on: ubuntu-latest | |
env: | |
PULL_BASE_REF: ${{ github.ref_name }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
MODULE_REGISTRY: europe-west3-docker.pkg.dev/sap-kyma-jellyfish-dev/template-operator | |
IMG: europe-west3-docker.pkg.dev/sap-kyma-jellyfish-dev/template-operator:${{ github.ref_name }} | |
steps: | |
- name: Checkout template operator | |
uses: actions/checkout@v4 | |
- id: 'auth' | |
name: Authenticate with GCP | |
uses: 'google-github-actions/auth@v2' | |
with: | |
token_format: 'access_token' | |
project_id: 'sap-kyma-jellyfish-dev' | |
workload_identity_provider: 'projects/718973091829/locations/global/workloadIdentityPools/github-action/providers/github-actions' | |
service_account: '[email protected]' | |
- name: Set up Cloud SDK | |
uses: 'google-github-actions/setup-gcloud@v2' | |
with: | |
version: '>= 363.0.0' | |
- name: Login to GCP | |
run: gcloud auth application-default print-access-token --impersonate-service-account [email protected] | |
# - name: Run upload assets script | |
# run: bash ./scripts/release/upload_assets.sh | |