forked from freeCodeCamp/freeCodeCamp
-
Notifications
You must be signed in to change notification settings - Fork 0
89 lines (80 loc) · 2.73 KB
/
temporary-container-checks.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
# TODO: remove this workflow once we use containers in the other workflows. This
# workflow is intended to prevent regressions until that has been achieved.
name: CI - E2E - Containers
on:
workflow_dispatch:
workflow_run:
workflows: ['CI - Node.js']
types:
- completed
# TODO: refactor with a workflow_call
pull_request:
paths-ignore:
- 'docs/**'
branches:
- 'main'
- 'next-**'
- 'e2e-**'
jobs:
build-client:
name: Build Client (Container)
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout Source Files
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: 'recursive'
- name: Create Image
run: |
docker build \
--build-arg HOME_LOCATION=http://localhost:8000 \
--build-arg API_LOCATION=http://localhost:3000 \
--build-arg FORUM_LOCATION=https://forum.freecodecamp.org \
--build-arg NEWS_LOCATION=https://www.freecodecamp.org/news \
--build-arg RADIO_LOCATION=https://coderadio.freecodecamp.org \
--build-arg CLIENT_LOCALE=english \
--build-arg CURRICULUM_LOCALE=english \
--build-arg ALGOLIA_APP_ID=app_id_from_algolia_dashboard \
--build-arg ALGOLIA_API_KEY=api_key_from_algolia_dashboard \
--build-arg STRIPE_PUBLIC_KEY=pk_from_stripe_dashboard \
--build-arg PAYPAL_CLIENT_ID=id_from_paypal_dashboard \
--build-arg PATREON_CLIENT_ID=id_from_patreon_dashboard \
--build-arg DEPLOYMENT_ENV=staging \
--build-arg SHOW_UPCOMING_CHANGES=false \
--build-arg SHOW_NEW_CURRICULUM=false \
--build-arg GROWTHBOOK_URI=api_URI_from_Growthbook_dashboard \
--build-arg FREECODECAMP_NODE_ENV=development \
-f docker/web/Dockerfile .
build-api:
name: Build Api (Container)
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout Source Files
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: 'recursive'
- name: Create Image
run: |
docker build \
-f docker/api-server/Dockerfile .
build-new-api:
name: Build New Api (Container)
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout Source Files
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: 'recursive'
- name: Create Image
run: |
docker build \
-f docker/api/Dockerfile .