Bump version: 2.5.5 → 2.5.6 #49
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .github/workflows/deploy.yml | |
name: Deploy 🚀 Thermal Comfort Tool to Google Cloud Run (☁🏃) | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
name: Deploying 🚀 CBE Comfort Tool | |
runs-on: ubuntu-latest | |
if: "contains(github.event.head_commit.message, 'bump version')" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Export gcloud related env variable | |
run: export CLOUDSDK_PYTHON="/usr/bin/python3" | |
# Build and push image to Google Container Registry | |
- name: Setting up | |
uses: google-github-actions/setup-gcloud@v0 | |
with: | |
version: '318.0.0' | |
service_account_key: ${{ secrets.GCP_SA_KEY_JSON }} | |
service_account_email: "[email protected]" | |
project_id: comfort-327718 | |
- name: Building (🏗️) | |
run: |- | |
gcloud builds submit --tag gcr.io/comfort-327718/comfort-tool | |
# Setup gcloud CLI | |
- name: Deploy (🚀) | |
uses: google-github-actions/deploy-cloudrun@main | |
with: | |
service: comfort-tool | |
image: gcr.io/comfort-327718/comfort-tool | |
region: us-central1 | |
credentials: ${{ secrets.GCP_SA_KEY_JSON }} | |
project_id: comfort-327718 |