We have two buckets:
- dev-storage-2023
- prd-storage-2023
export PROJECT_ID="blue-project-378421"
export PROJECT_NUMBER="32549352397"
export PROJECT_ID="INSERT-PROJECT-ID" | |
export PROJECT_NUMBER="INSERT-PROJECT-NUMBER" | |
export STATE_BUCKET="INSERT-STATE-BUCKET-NAME" | |
gcloud storage buckets create gs://$STATE_BUCKET --project=$PROJECT_ID --default-storage-class=STANDARD --location=EUROPE-WEST1 --uniform-bucket-level-access | |
gcloud iam workload-identity-pools create github \ | |
--project=$PROJECT_ID \ | |
--location="global" \ |
export PROJECT_ID="INSERT-PROJECT-ID" | |
export PROJECT_NUMBER="INSERT-PROJECT-NUMBER" | |
export DEV_BUCKET="INSERT-DEV-BUCKET-NAME" | |
export PRD_BUCKET="INSERT-PRD-BUCKET-NAME" | |
gcloud storage buckets create gs://$DEV_BUCKET --project=$PROJECT_ID --default-storage-class=STANDARD --location=EUROPE-WEST1 --uniform-bucket-level-access | |
gcloud storage buckets create gs://$PRD_BUCKET --project=$PROJECT_ID --default-storage-class=STANDARD --location=EUROPE-WEST1 --uniform-bucket-level-access | |
gcloud iam workload-identity-pools create github \ |
The full video is here https://youtu.be/bCqPXUcBfJQ
application one/.github/workflows/build.yaml
name: Application One
run-name: SDLC for Application One 🚀
on: [push]
jobs:
build:
runs-on: ubuntu-latest
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Welcome to blue!</title> | |
</head> | |
<body style="background-color:powderblue;"> | |
<h1>Welcome to blue!</h1> | |
</body> | |
</html> |
dd if=/dev/urandom | gzip -9 >> /dev/null & |
socat TCP4-LISTEN:80,fork,su=nobody TCP6:\[xxx:xxxx:xxx:xxxx:xxx:xxxx:xxx:xxxx\]:80 |