Skip to content

Commit

Permalink
hijack workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienFS committed Jan 30, 2024
1 parent 94d5000 commit 363a730
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Python package tools builder
run-name: Build
on:
push:
branches:
- main
jobs:
package_builder:
runs-on: ubuntu-latest
permissions:
contents: 'read'
id-token: 'write'
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- id: 'auth'
name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v1'
with:
token_format: 'access_token'
workload_identity_provider: 'projects/796047098845/locations/global/workloadIdentityPools/github/providers/github'
service_account: 'github-workflows@deepomatic-development-us1.iam.gserviceaccount.com'
access_token_lifetime: '300s'

- name: Login to GCP Container Registry
uses: docker/login-action@v3
with:
registry: https://europe-west1-docker.pkg.dev
username: oauth2accesstoken
password: ${{ steps.auth.outputs.access_token }}

0 comments on commit 363a730

Please sign in to comment.