-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (38 loc) · 1.33 KB
/
docker-check.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
name: Docker Containers Check
on:
pull_request:
branches:
- main
- MVE[0-9]
jobs:
check-containers:
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Create env file
run: |
{
echo POSTGRES_USER="${{ secrets.POSTGRES_USER }}";
echo POSTGRES_PASSWORD="${{ secrets.POSTGRES_PASSWORD }}";
echo POSTGRES_DB="${{ secrets.POSTGRES_DB }}";
echo PGDATA="$PWD/db/data";
echo DJANGO_SECRET_KEY="${{ secrets.DJANGO_SECRET_KEY }}";
echo DOCKSOCKUID="$(id -u)";
} >> .env
- name: Create discord webhook file for alertmanager
run: echo "${{ secrets.DISCORD_WEBHOOK }}" > ./monitoring/alertmanager/very-secret-webhook-url
- name: Install mkcert
run: |
sudo apt-get install -y libnss3-tools
wget https://github.com/FiloSottile/mkcert/releases/download/v1.4.3/mkcert-v1.4.3-linux-amd64
chmod +x mkcert-v1.4.3-linux-amd64
mv mkcert-v1.4.3-linux-amd64 /usr/local/bin/mkcert
- name: Build containers AND check healthiness
run: |
make || { make logs; exit 1; }