-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (44 loc) · 1.19 KB
/
build-push-images.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
name: Create and publish Docker image
on:
workflow_dispatch:
workflow_call:
secrets:
REACT_APP_MAP_API_URL:
required: true
REACT_APP_SENTRY_DSN:
required: true
env:
REGISTRY: ghcr.io
REPO: ${{ github.repository }}
jobs:
backend-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Build and Push BE image
uses: ./.github/actions/build-push-image
with:
imageType: be
imageContext: backend/
repoToken: ${{ secrets.GITHUB_TOKEN }}
frontend-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Build and Push FE image
uses: ./.github/actions/build-push-image
with:
imageType: fe
imageContext: frontend/
repoToken: ${{ secrets.GITHUB_TOKEN }}
buildArgs: |
REACT_APP_MAP_API_URL=${{ secrets.REACT_APP_MAP_API_URL }}
REACT_APP_SENTRY_DSN=${{ secrets.REACT_APP_SENTRY_DSN }}