Skip to content

fix: set description to undefined if decode fails (#130) #83

fix: set description to undefined if decode fails (#130)

fix: set description to undefined if decode fails (#130) #83

Workflow file for this run

name: main
on:
push:
branches: ["main"]
env:
REGISTRY: docker.io
IMAGE: ${{ github.repository }}
SERVICE: web
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
# Only one release at a time and cancel prior releases
concurrency:
group: release
cancel-in-progress: true
steps:
- uses: actions/checkout@v3
# I'm paying for Depot for faster ARM builds.
- uses: depot/setup-action@v1
# Log into the docker registry via the GCP token
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
# Build and push Docker image with Depot
- uses: depot/build-push-action@v1
id: depot
with:
project: hppp3x0qjc
context: .
push: true
tags: ${{env.REGISTRY}}/${{env.IMAGE}}
# Log in to GCP
- uses: google-github-actions/auth@v1
with:
credentials_json: ${{ secrets.GCP_SERVICE_ACCOUNT_KEY }}
# Deploy to cloud run
- uses: google-github-actions/deploy-cloudrun@v1
with:
service: ${{env.SERVICE}}
image: ${{env.REGISTRY}}/${{env.IMAGE}}@${{steps.depot.outputs.imageid}}