-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (37 loc) · 1.08 KB
/
build.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
# Copyright (C) 2023 Sebastian Pipping <[email protected]>
# SPDX-License-Identifier: MIT
name: Build
# Drop permissions to minimum for security
permissions:
contents: read
on:
pull_request:
push:
schedule:
- cron: '0 2 * * 5' # Every Friday at 2am
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Install dependencies
run: |-
sudo apt-get update
sudo apt-get install --yes --no-install-recommends -V \
docker-compose \
wait-for-it
- name: Build Docker image
run: |-
docker-compose build
- name: Smoke-test Docker image
run: |-
set -x
docker network create --internal ssl-reverse-proxy
docker-compose up -d
wait-for-it 127.0.0.1:50180 -- \
wget -O- http://127.0.0.1:50180/ \
| grep -qF gentoo-ev.org
docker-compose down
docker network rm ssl-reverse-proxy