This commit is contained in:
@@ -5,16 +5,20 @@ when:
|
||||
steps:
|
||||
- name: build-and-push
|
||||
image: woodpeckerci/plugin-kaniko
|
||||
settings:
|
||||
registry: git.mikhailkilin.ru
|
||||
repo: killingdruid/bcard
|
||||
tags: "${CI_COMMIT_SHA:0:8},latest"
|
||||
username:
|
||||
environment:
|
||||
DOCKER_USERNAME:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
DOCKER_PASSWORD:
|
||||
from_secret: docker_password
|
||||
insecure: true
|
||||
skip_tls_verify: true
|
||||
commands:
|
||||
- 'TAG=${CI_COMMIT_SHA:0:8}'
|
||||
- 'REGISTRY=git.mikhailkilin.ru'
|
||||
- 'REPO=killingdruid/bcard'
|
||||
- 'echo "Building $REGISTRY/$REPO:$TAG"'
|
||||
- 'AUTH=$(echo -n "$DOCKER_USERNAME:$DOCKER_PASSWORD" | base64)'
|
||||
- 'mkdir -p /kaniko/.docker'
|
||||
- 'echo "{\"auths\":{\"$REGISTRY\":{\"auth\":\"$AUTH\"}}}" > /kaniko/.docker/config.json'
|
||||
- '/kaniko/executor --context=$CI_WORKSPACE --dockerfile=Dockerfile --destination=$REGISTRY/$REPO:$TAG --destination=$REGISTRY/$REPO:latest --insecure --skip-tls-verify -v info'
|
||||
|
||||
- name: update-manifests
|
||||
image: alpine
|
||||
|
||||
Reference in New Issue
Block a user