Skip to content

Merge rtf

Merge rtf #133

Workflow file for this run

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@v4
with:
go-version: '1.20'
id: go
- name: Check out code
uses: actions/checkout@v3
- 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