-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-pr.yml
More file actions
39 lines (37 loc) · 1.05 KB
/
Copy pathdocker-pr.yml
File metadata and controls
39 lines (37 loc) · 1.05 KB
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
name: Docker PR build
on:
pull_request:
branches: ["*"]
paths:
- 'api/**'
- 'front/**'
- '.github/workflows/**'
jobs:
build:
uses: 1024pix/pix-actions/.github/workflows/docker-build.yml@main
with:
images: |
[
{
"name": "app-api",
"context": "./api",
"dockerfile": "./api/Dockerfile",
"build-args": [
"NODE_ENV=staging",
"API_BASE_URL=https://api-staging.example.com"
]
},
{
"name": "app-front",
"context": "./front",
"dockerfile": "./front/Dockerfile",
"build-args": [
"NEXT_PUBLIC_API_URL=https://api-staging.example.com",
"BUILD_ENV=staging"
]
}
]
secrets:
# Secrets d'organisation Pix
CONTAINER_REGISTRY_SCW_INFRA_ENDPOINT: ${{ secrets.CONTAINER_REGISTRY_SCW_INFRA_ENDPOINT }}
SCW_CONTAINER_REGISTRY_INFRA_SECRET_KEY: ${{ secrets.SCW_CONTAINER_REGISTRY_INFRA_SECRET_KEY }}