Skip to content
This repository has been archived by the owner on Oct 22, 2023. It is now read-only.

Update gcloud to v451.0.0 #1210

Update gcloud to v451.0.0

Update gcloud to v451.0.0 #1210

Workflow file for this run

name: Pipeline
on: [push, pull_request]
jobs:
build:
name: "Lint and Deploy"
runs-on: ubuntu-22.04
env:
TERM: xterm-256color
BATECT_CACHE_TYPE: directory
BATECT_ENABLE_TELEMETRY: true
DOCKER_BUILDKIT: 1
concurrency:
# Don't try to run multiple builds for the same branch in parallel.
# This prevents race conditions between deployments from the main branch - the first commit will always be built and deployed first.
group: build-${{ github.repository }}-${{ github.ref }}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Validate Batect wrapper scripts
uses: batect/[email protected]
- name: Cache Batect
uses: actions/[email protected]
with:
path: ~/.batect/cache
key: batect-${{ hashFiles('batect') }}
- name: Lint Terraform files
run: ./batect lintTerraform
- name: Check code files have license header
run: ./batect checkLicenseHeader
- name: Log in to GCP
run: ./batect setupGCPServiceAccount
if: github.repository == 'batect/ide-integration.batect.dev' && github.ref == 'refs/heads/main' && github.event_name == 'push'
env:
GCP_SERVICE_ACCOUNT_EMAIL: github-actions@batect-ide-integration-prod.iam.gserviceaccount.com
GCP_SERVICE_ACCOUNT_KEY: ${{ secrets.GCP_SERVICE_ACCOUNT_KEY }}
- name: Setup Cloudflare key
run: ./batect setupCloudflareKey
if: github.repository == 'batect/ide-integration.batect.dev' && github.ref == 'refs/heads/main' && github.event_name == 'push'
env:
CLOUDFLARE_KEY: ${{ secrets.CLOUDFLARE_KEY }}
- name: Setup Terraform
run: ./batect setupTerraform
if: github.repository == 'batect/ide-integration.batect.dev' && github.ref == 'refs/heads/main' && github.event_name == 'push'
- name: Apply Terraform
run: ./batect applyTerraform
if: github.repository == 'batect/ide-integration.batect.dev' && github.ref == 'refs/heads/main' && github.event_name == 'push'
- name: Cleanup credentials
run: sudo rm -rf .creds .gcloud
- name: Run smoke test
run: ./batect smokeTest
if: github.repository == 'batect/ide-integration.batect.dev' && github.ref == 'refs/heads/main' && github.event_name == 'push'