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

Develop #2

Merged
merged 5 commits into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ jobs:
contents: read
uses: gentrop-cloud/actions_workflows/.github/workflows/deploy.yaml@main
with:
identity_pool: 'projects/195139564832/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
identity_sa: 'action-deployer@gtp-reinaldo-study-0001.iam.gserviceaccount.com'
identity_pool: 'projects/195139564832/locations/global/workloadIdentityPools/github-pool/providers/github-wif'
identity_sa: 'github-action-deployer@gtp-reinaldo-study-0001.iam.gserviceaccount.com'
image: 'us-central1-docker.pkg.dev/gtp-reinaldo-study-0001/default-repo/sample:tag1'
37 changes: 37 additions & 0 deletions .github/workflows/tt.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Deploy

on:
push:
branches:
- develop

jobs:
job_id:
runs-on: 'ubuntu-latest'
# Add "id-token" with the intended permissions.
permissions:
contents: 'read'
id-token: 'write'

steps:

- name: Check out Git repository
uses: actions/checkout@v3

- id: 'auth'
uses: 'google-github-actions/auth@v2'
with:
workload_identity_provider: 'projects/195139564832/locations/global/workloadIdentityPools/github-pool/providers/github-wif'
service_account: 'github-action-deployer@gtp-reinaldo-study-0001.iam.gserviceaccount.com'

- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v2'
with:
version: '>= 363.0.0'

- name: 'Use gcloud CLI'
run: 'gcloud info'

# Build and push image to Google Container Registry
- name: Build
run: gcloud builds submit --tag us-central1-docker.pkg.dev/gtp-reinaldo-study-0001/default-repo/sample:tag1
Loading