This commit is contained in:
parent
b3041c1ebd
commit
fec40766c8
@ -1,31 +1,7 @@
|
|||||||
steps:
|
steps:
|
||||||
setup-auth:
|
|
||||||
name: Setup Docker Auth for Harbor
|
|
||||||
image: alpine:3.19
|
|
||||||
environment:
|
|
||||||
PULL_USER:
|
|
||||||
from_secret: DOCKER_PULL_BASE_IMAGES_USERNAME
|
|
||||||
PULL_PASS:
|
|
||||||
from_secret: DOCKER_PULL_BASE_IMAGES_TOKEN
|
|
||||||
commands:
|
|
||||||
- mkdir -p /kaniko/.docker
|
|
||||||
- |
|
|
||||||
AUTH=$(echo -n "${PULL_USER}:${PULL_PASS}" | base64 -w0)
|
|
||||||
cat > /kaniko/.docker/config.json <<EOF
|
|
||||||
{
|
|
||||||
"auths": {
|
|
||||||
"harbor.dvirlabs.com": {
|
|
||||||
"auth": "$AUTH"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
|
|
||||||
build-and-push:
|
build-and-push:
|
||||||
name: Build & Push Docker Image
|
name: Build & Push Docker Image
|
||||||
image: woodpeckerci/plugin-kaniko
|
image: woodpeckerci/plugin-kaniko
|
||||||
depends_on:
|
|
||||||
- setup-auth
|
|
||||||
when:
|
when:
|
||||||
branch: [ master, develop ]
|
branch: [ master, develop ]
|
||||||
event: [ push, pull_request, tag ]
|
event: [ push, pull_request, tag ]
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
FROM harbor.dvirlabs.com/base-images/python:3.11.15-alpine3.22
|
FROM python:3.11.15-alpine3.22
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user