escaping
This commit is contained in:
parent
5d9a6296f1
commit
fb2c3f4598
@ -10,10 +10,16 @@ steps:
|
||||
path: /var/run
|
||||
environment:
|
||||
DOCKER_BUILDKIT: 1
|
||||
HARBOR_DOCKER_HOST: "harbor.front.kjuulh.io"
|
||||
HARBOR_DOCKER_USERNAME:
|
||||
secret: "harbor_docker_username"
|
||||
HARBOR_DOCKER_PASSWORD:
|
||||
secret: "harbor_docker_password"
|
||||
commands:
|
||||
- "sleep 5"
|
||||
- apk add git
|
||||
- mkdir -p tmp/dagger-go
|
||||
- 'echo "$HARBOR_DOCKER_PASSWORD" | docker login --username "$HARBOR_DOCKER_USERNAME" --password-stdin "$HARBOR_DOCKER_HOST"'
|
||||
- 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/" -e DRONE_REPO_NAME="${DRONE_REPO_NAME}" -v /var/run/docker.sock:/var/run/docker.sock dagger-go-builder:${DRONE_COMMIT} dagger-go build golangbin'
|
||||
|
Loading…
Reference in New Issue
Block a user