Build #143
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- 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:50280 -- \ | |
wget -O- http://127.0.0.1:50280/ \ | |
| grep -qF gentoo.de | |
docker-compose down | |
docker network rm ssl-reverse-proxy |