Merge branch 'feature/upd_cicd_func'
This commit is contained in:
commit
f04302a9f2
28
.github/workflows/deploy_to_gcp.yml
vendored
28
.github/workflows/deploy_to_gcp.yml
vendored
@ -2,27 +2,35 @@ name: Gitea Deploy to GCP
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
pull_request:
|
||||
branches:
|
||||
- deploy-prd
|
||||
- deploy-dev
|
||||
paths:
|
||||
- 'src/**'
|
||||
- 'terraform/**'
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
gcp-deploy:
|
||||
name: Deploy to GCP
|
||||
runs-on: gcloud-tf
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Check Deploy Tools
|
||||
run: |
|
||||
gcloud --version
|
||||
terraform --version
|
||||
# checkout:
|
||||
# name: Checkout code
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - name: Checkout code
|
||||
# uses: actions/checkout@v3
|
||||
|
||||
# gcp-deploy:
|
||||
# name: Deploy to GCP
|
||||
# runs-on: gcloud-tf
|
||||
# steps:
|
||||
# - name: Check Deploy Tools
|
||||
# run: |
|
||||
# gcloud --version
|
||||
# terraform --version
|
||||
# ls -la
|
||||
|
||||
|
||||
# - name: Set up Cloud SDK
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user