This commit is contained in:
@@ -5,16 +5,20 @@ when:
|
|||||||
steps:
|
steps:
|
||||||
- name: build-and-push
|
- name: build-and-push
|
||||||
image: woodpeckerci/plugin-kaniko
|
image: woodpeckerci/plugin-kaniko
|
||||||
settings:
|
environment:
|
||||||
registry: git.mikhailkilin.ru
|
DOCKER_USERNAME:
|
||||||
repo: killingdruid/bcard
|
|
||||||
tags: "${CI_COMMIT_SHA:0:8},latest"
|
|
||||||
username:
|
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
password:
|
DOCKER_PASSWORD:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
insecure: true
|
commands:
|
||||||
skip_tls_verify: true
|
- '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
|
- name: update-manifests
|
||||||
image: alpine
|
image: alpine
|
||||||
|
|||||||
Reference in New Issue
Block a user