without git

This commit is contained in:
Kasper Juul Hermansen 2022-10-29 18:50:29 +02:00
parent 97bff5baab
commit 165554ee15
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23
2 changed files with 1 additions and 2 deletions

View File

@ -8,8 +8,6 @@ RUN go build -o dist/dagger-go main.go
FROM harbor.front.kjuulh.io/docker-proxy/library/docker:dind FROM harbor.front.kjuulh.io/docker-proxy/library/docker:dind
RUN apt install git
WORKDIR /src/docker WORKDIR /src/docker
COPY --from=builder /src/builder/dist/dagger-go . COPY --from=builder /src/builder/dist/dagger-go .

View File

@ -14,6 +14,7 @@ steps:
DOCKER_BUILDKIT: 1 DOCKER_BUILDKIT: 1
commands: commands:
- "sleep 5" - "sleep 5"
- apk add git
- mkdir -p tmp/dagger-go - mkdir -p tmp/dagger-go
- git clone "https://git.front.kjuulh.io/kjuulh/dagger-go.git" tmp/dagger-go - git clone "https://git.front.kjuulh.io/kjuulh/dagger-go.git" tmp/dagger-go
- docker build -t dagger-go-builder:${DRONE_COMMIT} -f tmp/dagger-go/Dockerfile . - docker build -t dagger-go-builder:${DRONE_COMMIT} -f tmp/dagger-go/Dockerfile .