Skip to content

Commit

Permalink
Add a test for docker (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
ostcar committed Mar 17, 2022
1 parent a385c25 commit 23faa93
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Check Docker build
on: [pull_request]
jobs:
docker:
name: Docker
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v3

- name: Start With Docker
run: |
docker build . --tag openslides-vote
printf "my_token_key" > auth_token_key
printf "my_cookie_key" > auth_cookie_key
timeout --preserve-status --signal=SIGINT 5s docker run --network host -v $PWD/auth_token_key:/run/secrets/auth_token_key -v $PWD/auth_cookie_key:/run/secrets/auth_cookie_key openslides-vote
env:
DOCKER_BUILDKIT: 1
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.18-alpine3.13 as base
FROM golang:1.18-alpine as base
WORKDIR /root/

RUN apk add git
Expand Down

0 comments on commit 23faa93

Please sign in to comment.