-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (33 loc) · 1 KB
/
container.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
name: Container test
on: [pull_request]
jobs:
build:
strategy:
matrix:
test: [mongo_test]
runs-on: ubuntu-latest
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: install s3cmd
run: pip3 install s3cmd
- name: Check out
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Build backup-svc container
run: docker build -t nbisweden/sda-backup:test .
- name: create certificates
run: bash ./dev_tools/scripts/make_certs.sh
- name: create crypt4gh keys
run: bash ./dev_tools/scripts/make_keys.sh
- name: Start virtual infrastructure
run: docker compose -f ./dev_tools/docker-compose.yml up -d --force-recreate
- name: Wait for containers to start
run: bash ./dev_tools/scripts/readiness.sh
- name: Run test
run: bash ./dev_tools/scripts/${{ matrix.test }}.sh docker