-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (37 loc) · 1.23 KB
/
ubuntu.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
name: pkcs11_ca-ubuntu
on: [push]
jobs:
VM-test-job:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install and run
run: |
sudo apt-get update
sudo apt-get install docker-compose curl -y
pip3 install types-requests types-jsonschema mypy black pylint
pip3 install -r requirements.txt
env
id
ls -altr
bash -c 'export CA_URL=https://ca && \
export CA_DNS_NAME=ca && \
export ACME_ROOT=/acme && \
export PKCS11_SIGN_API_TOKEN=xyz && \
export PKCS11_TOKEN=my_test_token_1 && \
export PKCS11_PIN=1234 && \
export PKCS11_MODULE=/usr/lib/softhsm/libsofthsm2.so && \
export POSTGRES_HOST=postgres && \
export POSTGRES_USER=pkcs11_testuser1 && \
export POSTGRES_PASSWORD=DBUserPassword && \
export POSTGRES_PORT=5432 && \
export POSTGRES_DATABASE=pkcs11_testdb1 && \
export POSTGRES_TIMEOUT=5 && \
bash deploy.sh'