generated from CDCgov/template
-
Notifications
You must be signed in to change notification settings - Fork 2
91 lines (84 loc) · 2.7 KB
/
deploy-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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: Build and Deploy full app
on:
push:
branches: reusable-actions-combine-frontend-api
# workflow_dispatch:
# inputs:
# deploy_env:
# description: 'The environment to deploy to'
# required: true
# type: choice
# options:
# - dev
# - dev2
# - dev3
# - dev4
# - dev5
# - dev6
# ocr-version:
# description: 'The environment to deploy to'
# required: true
permissions:
id-token: write
contents: read
env:
NODE_VERSION: 20
REGISTRY: ghcr.io
VERSION: derek-dev-combine
deploy_env: dev
jobs:
build_publish_ocr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build and Push backend
uses: ./.github/actions/build-publish-ocr
with:
deploy_env: ${{ env.deploy_env }}
token: ${{ secrets.GITHUB_TOKEN }}
# build_frontend:
# runs-on: ubuntu-latest
# environment: ${{ env.deploy_env }}
# steps:
# - uses: actions/checkout@v4
# - uses: ./.github/actions/build-frontend
# name: Build front-end application
# with:
# frontend_tarball: ./frontend.tgz
# deploy_env: ${{ env.deploy_env }}
# prerelease_backend:
# runs-on: ubuntu-latest
# needs: [build_frontend, build_docker_ocr]
# steps:
# - uses: actions/checkout@v4
# - uses: ./.github/actions/tf-deploy
# name: Deploy with Terraform
# with:
# deploy_env: ${{ env.deploy_env }}
# azure_client_id: ${{ secrets.AZURE_CLIENT_ID }}
# azure_tenant_id: ${{ secrets.AZURE_TENANT_ID }}
# azure_subscription_id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
# deploy:
# name: Deploy
# runs-on: ubuntu-latest
# environment: ${{ env.deploy_env }}
# needs: [build_frontend]
# steps:
# - uses: actions/checkout@v4
# - name: Promote and deploy
# uses: ./.github/actions/deploy-frontend
# with:
# azure_client_id: ${{ secrets.AZURE_CLIENT_ID }}
# azure_tenant_id: ${{ secrets.AZURE_TENANT_ID }}
# azure_subscription_id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
# frontend_tarball: frontend.tgz
# deploy_env: ${{ env.deploy_env }}
# - name: Lowercase the repo name
# run: echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
# - name: Deploy to Azure Web App
# id: deploy-to-webapp
# uses: azure/webapps-deploy@v3
# with:
# app-name: reportvision-ocr-api-${{ env.deploy_env }}
# publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
# images: '${{ env.REGISTRY }}/${{ env.REPO }}-ocr-api:${{ env.VERSION }}'