Skip to content

Commit

Permalink
use locally checked out lib in the docker job
Browse files Browse the repository at this point in the history
see #1177
  • Loading branch information
itizir authored and mattn committed Dec 14, 2023
1 parent 9fd6f4f commit c260ecf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ jobs:

- name: Run example - simple
run: |
cd ./_example/simple
docker build -t simple .
docker build -t simple -f ./_example/simple/Dockerfile .
docker run simple | grep 99\ こんにちは世界099
2 changes: 2 additions & 0 deletions _example/simple/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ WORKDIR /workspace
COPY . /workspace/

RUN \
cd _example/simple && \
go mod init github.com/mattn/sample && \
go mod edit -replace=github.com/mattn/go-sqlite3=../.. && \
go mod tidy && \
go install -ldflags='-s -w -extldflags "-static"' ./simple.go

Expand Down

0 comments on commit c260ecf

Please sign in to comment.