aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Becciolini <diego.becciolini@nextdlp.com>2023-12-13 20:40:44 +0000
committermattn <mattn.jp@gmail.com>2023-12-14 10:25:47 +0900
commitc260ecf7e447bd648c14717b02146160354d6489 (patch)
treee64d88ba4eb6cc7ef35a31ce507a559879870200
parentUpdate amalgamation code (diff)
downloadgolite-c260ecf7e447bd648c14717b02146160354d6489.tar.gz
golite-c260ecf7e447bd648c14717b02146160354d6489.tar.xz
use locally checked out lib in the docker job
see https://github.com/mattn/go-sqlite3/pull/1177
-rw-r--r--.github/workflows/docker.yaml3
-rw-r--r--_example/simple/Dockerfile2
2 files changed, 3 insertions, 2 deletions
diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml
index 83faeb6..7983de4 100644
--- a/.github/workflows/docker.yaml
+++ b/.github/workflows/docker.yaml
@@ -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
diff --git a/_example/simple/Dockerfile b/_example/simple/Dockerfile
index c19f6e6..b8545da 100644
--- a/_example/simple/Dockerfile
+++ b/_example/simple/Dockerfile
@@ -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