-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (37 loc) · 1.14 KB
/
deploy-to-dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Deploy to dev
on:
workflow_dispatch:
pull_request:
branches:
- "master"
paths:
- "**.js*"
- "**.ts*"
- "package*.json"
- "Dockerfile"
- "entrypoint.sh"
- ".github/workflows/deploy-to-dev.yml"
concurrency:
# Ensures that only one workflow task will run at a time. Previous builds, if
# already in process, will get cancelled. Only the latest commit will be allowed
# to run, cancelling any workflows in between
group: ${{ github.workflow }}-${{ github.job }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
uses: ./.github/workflows/build-docker-image.yml
with:
dockerfile_path: ./Dockerfile
dockerfile_target: runner
app_name: auth-registry-frontend
registry: us-docker.pkg.dev/auth-do/auth-frontend
secrets: inherit
deploy:
needs: ['build']
uses: ./.github/workflows/cloudrun-deploy.yml
with:
environment: development
project: auth-do
region: us-east1
image: us-docker.pkg.dev/auth-do/auth-frontend/auth-registry-frontend@${{ needs.build.outputs.image_digest }}
secrets: inherit