feat: removed some unused images #139
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 🚀 Clima to Google Cloud Run (☁🏃) | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
name: Deploying 🚀 Clima | |
runs-on: ubuntu-latest | |
if: "contains(github.event.head_commit.message, 'bump version')" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- 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: "federico.tartarini@bears-berkeley.sg" | |
project_id: clima-316917 | |
- name: Building (🏗️) | |
run: |- | |
gcloud builds submit \ | |
--tag us-docker.pkg.dev/clima-316917/gcr.io/clima | |
# Setup gcloud CLI | |
- name: Deploy (🚀) | |
uses: google-github-actions/deploy-cloudrun@v1 | |
with: | |
service: clima | |
image: us-docker.pkg.dev/clima-316917/gcr.io/clima | |
region: us-central1 | |
credentials: ${{ secrets.GCP_SA_KEY_JSON }} | |
project_id: clima-316917 |