Skip to content

Commit 329cd42

Browse files
itizirjgiannuzzi
authored andcommitted
use locally checked out lib in the docker job
see mattn#1177
1 parent 6490189 commit 329cd42

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/docker.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,5 @@ jobs:
1717

1818
- name: Run example - simple
1919
run: |
20-
cd ./_example/simple
21-
docker build -t simple .
20+
docker build -t simple -f ./_example/simple/Dockerfile .
2221
docker run simple | grep 99\ こんにちは世界099

_example/simple/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ WORKDIR /workspace
2626
COPY . /workspace/
2727

2828
RUN \
29+
cd _example/simple && \
2930
go mod init github.com/mattn/sample && \
31+
go mod edit -replace=github.com/mattn/go-sqlite3=../.. && \
3032
go mod tidy && \
3133
go install -ldflags='-s -w -extldflags "-static"' ./simple.go
3234

0 commit comments

Comments
 (0)