check new types #30
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
name: Push Deployment | |
on: | |
push: | |
branches: | |
- "master" | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Code Checkout | |
uses: 'actions/checkout@v4' | |
- name: Authenticate with Google Cloud | |
uses: 'google-github-actions/auth@v2' | |
with: | |
project_id: ${{ secrets.GCLOUD_PROJECT_ID }} | |
credentials_json: ${{ secrets.SERVICE_ACCOUNT_KEY }} | |
export_default_credentials: true | |
- name: Build and Push | |
env: | |
GCLOUD_PROJECT_ID: ${{ secrets.GCLOUD_PROJECT_ID }} | |
REPO: ${{ secrets.REPO }} | |
run: | | |
gcloud auth configure-docker europe-west1-docker.pkg.dev | |
docker build -t europe-west1-docker.pkg.dev/$GCLOUD_PROJECT_ID/$REPO/nestapp:latest . | |
docker push europe-west1-docker.pkg.dev/$GCLOUD_PROJECT_ID/$REPO/nestapp:latest | |
- name: Deploy | |
env: | |
GCLOUD_PROJECT_ID: ${{ secrets.GCLOUD_PROJECT_ID }} | |
REPO: ${{ secrets.REPO }} | |
run: | | |
gcloud run deploy task-manager \ | |
--region europe-west1 \ | |
--image=europe-west1-docker.pkg.dev/$GCLOUD_PROJECT_ID/$REPO/nestapp \ | |
--allow-unauthenticated |