Skip to content

Commit

Permalink
Merge branch 'main' of github.com:gowon-irc/gowon-trakt
Browse files Browse the repository at this point in the history
  • Loading branch information
surskitt committed Feb 26, 2024
2 parents a886d47 + 9a44d2a commit 63b506c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,19 @@ on:
- '*.go'
- go.mod
- go.sum
- .github/workflows/*.yaml

jobs:
gotest:
name: Go test
runs-on: ubuntu-20.04

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v2
with:
go-version: 1.21
go-version: 1.17

- name: Test
run: go test -v ./...
Expand Down
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM golang:alpine as build-env
COPY . /src
WORKDIR /src
RUN go build -o gowon-trakt

FROM alpine:3.15.0
RUN mkdir /data
ENV GOWON_TRAKT_KV_PATH /data/kv.db
WORKDIR /app
COPY --from=build-env /src/gowon-trakt /app/
ENTRYPOINT ["./gowon-trakt"]

0 comments on commit 63b506c

Please sign in to comment.