-
Notifications
You must be signed in to change notification settings - Fork 12
51 lines (44 loc) · 1.38 KB
/
readme.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
48
49
50
51
name: Check Commands in README.md
on: [pull_request]
jobs:
readme:
name: Readme
runs-on: ubuntu-latest
services:
redis:
image: redis
ports:
- 6379:6379
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
id: go
- name: Check out code
uses: actions/checkout@v4
- name: create secrets
run: |
mkdir secrets
printf "password" > secrets/postgres_password
printf "my_token_key" > secrets/auth_token_key
printf "my_cookie_key" > secrets/auth_cookie_key
- name: Start With golang
run: |
export DATABASE_PASSWORD_FILE=secrets/postgres_password
export AUTH_TOKEN_KEY_FILE=secrets/auth_token_key
export AUTH_COOKIE_KEY_FILE=secrets/auth_cookie_key
go build
timeout --preserve-status --signal=SIGINT 2s ./openslides-icc-service
- name: Start With Docker
run: |
docker build . --tag openslides-icc
timeout --preserve-status --signal=SIGINT 5s docker run --network host -v $PWD/secrets:/run/secrets openslides-icc
env:
DOCKER_BUILDKIT: 1
- name: Start With Auto Restart
run: |
make build-dev
timeout --preserve-status --signal=SIGINT 5s docker run --network host --env OPENSLIDES_DEVELOPMENT=true openslides-icc-dev
env:
DOCKER_BUILDKIT: 1