-
-
Notifications
You must be signed in to change notification settings - Fork 1
65 lines (55 loc) · 1.33 KB
/
ci.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
name: CI
on:
push
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
mariadb_tag: [
latest
]
wordpress_tag: [
latest
]
node_tag: [
14
]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Set up Docker
uses: docker/setup-buildx-action@v1
- name: Create .env file
run: |
cp .env.dist .env
# method #1
#- name: Install mkcert
# run: |
# sudo apt-get update && sudo apt-get install libnss3-tools
# wget -q -O - https://mkcert.dev/install.sh | sudo bash
# method #2
- name: Generate self-signed CA
uses: kofemann/[email protected]
with:
hostcert: 'server.crt'
hostkey: 'server.key'
cachain: 'ca-chain.pem'
- name: Move certificates
run: |
mkdir -p tmp/certs
mv server.crt server.key ca-chain.pem tmp/certs/
- name: Run Makefile tasks
run: |
make install \
MARIADB_TAG=$MARIADB_TAG \
WORDPRESS_TAG=$WORDPRESS_TAG \
NODE_TAG=$NODE_TAG
make test \
MARIADB_TAG=$MARIADB_TAG \
WORDPRESS_TAG=$WORDPRESS_TAG \
NODE_TAG=$NODE_TAG
make down