with alpine
This commit is contained in:
parent
a872bad97d
commit
cadac9fc08
@ -16,7 +16,7 @@ steps:
|
||||
- mkdir -p 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 run -v "$PWD/:/src/" -v /var/run/docker.sock:/var/run/docker.sock dagger-go-builder:${DRONE_COMMIT} dagger-go build'
|
||||
- 'docker run -v "$PWD/:/src/" -e DRONE_REPO_NAME="${DRONE_REPO_NAME}" -v /var/run/docker.sock:/var/run/docker.sock dagger-go-builder:${DRONE_COMMIT} dagger-go build'
|
||||
|
||||
services:
|
||||
- name: docker
|
||||
|
@ -30,7 +30,7 @@ func Build(builder *internal.Builder, imageTag string, buildPath string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
golang := client.Container().From("golang:latest")
|
||||
golang := client.Container().From("harbor.front.kjuulh.io/docker-proxy/library/golang:alpine")
|
||||
golang = golang.WithMountedDirectory("/src", src).WithWorkdir("/src")
|
||||
_, err = golang.Exec(dagger.ContainerExecOpts{
|
||||
Args: []string{"go", "build", "-o", "build/", buildPath},
|
||||
|
Loading…
Reference in New Issue
Block a user