This commit is contained in:
parent
38794e6792
commit
4ca6990986
@ -1,4 +1,29 @@
|
||||
steps:
|
||||
docker-config:
|
||||
name: Setup Docker Config for Harbor Auth
|
||||
image: alpine:3.19
|
||||
environment:
|
||||
REGISTRY_URL: harbor.dvirlabs.com
|
||||
PULL_USERNAME:
|
||||
from_secret: DOCKER_PULL_BASE_IMAGES_USERNAME
|
||||
PULL_PASSWORD:
|
||||
from_secret: DOCKER_PULL_BASE_IMAGES_TOKEN
|
||||
commands:
|
||||
- mkdir -p /root/.docker
|
||||
- |
|
||||
cat > /root/.docker/config.json <<EOF
|
||||
{
|
||||
"auths": {
|
||||
"harbor.dvirlabs.com": {
|
||||
"username": "$PULL_USERNAME",
|
||||
"password": "$PULL_PASSWORD",
|
||||
"auth": "$(echo -n $PULL_USERNAME:$PULL_PASSWORD | base64)"
|
||||
}
|
||||
}
|
||||
}
|
||||
EOF
|
||||
- cat /root/.docker/config.json
|
||||
|
||||
build-and-push:
|
||||
name: Build & Push Docker Image
|
||||
image: woodpeckerci/plugin-kaniko
|
||||
@ -17,11 +42,6 @@ steps:
|
||||
from_secret: DOCKER_USERNAME
|
||||
password:
|
||||
from_secret: DOCKER_PASSWORD
|
||||
registry_mirror: harbor.dvirlabs.com
|
||||
pull_credentials_username:
|
||||
from_secret: DOCKER_PULL_BASE_IMAGES_USERNAME
|
||||
pull_credentials_password:
|
||||
from_secret: DOCKER_PULL_BASE_IMAGES_TOKEN
|
||||
|
||||
update-values:
|
||||
name: Update image tag in observability-stack
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user