-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (46 loc) · 1.2 KB
/
test-verlihub.yaml
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
---
name: Build and test `verlihub` container image
on:
pull_request:
branches:
- main
paths:
- "verlihub/**"
workflow_dispatch:
jobs:
build-test:
name: Build and test image
runs-on: ubuntu-24.04
strategy:
fail-fast: false
max-parallel: 1
matrix:
container: [verlihub]
steps:
# Checkout repository
# https://github.com/actions/checkout
- name: Checkout repository
uses: actions/[email protected]
# Generate test secrets
- name: Generate test secrets
run: |
mkdir secrets
echo "sqlpw123" > secrets/VH_MYSQL_PASSWORD
echo "hubpw123" > secrets/VH_HUB_MASTER_PASSWORD
working-directory: verlihub
# Build and start image
- name: Build and start image
run: |
docker compose up --detach
working-directory: verlihub
# Grab the container logs
- name: Grab container logs
run: |
sleep 10
docker compose logs verlihub
working-directory: verlihub
# Stop and remove containers
- name: Stop and remove container
run: |
docker compose down
working-directory: verlihub