Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
f2e2692d0c
|
|||
|
fd14ac7117
|
|||
|
306f6e12cd
|
|||
|
c7249ba743
|
|||
|
b26e8d212d
|
|||
|
6155787b59
|
@@ -4,33 +4,28 @@ steps:
|
||||
settings:
|
||||
repo: ${FORGE_NAME}/${CI_REPO}
|
||||
registry:
|
||||
from_secret: container_registry
|
||||
tags: latest,${CI_COMMIT_SHA},${CI_COMMIT_TAG}
|
||||
from_secret: local_registry
|
||||
username:
|
||||
from_secret: container_registry_username
|
||||
from_secret: local_username
|
||||
password:
|
||||
from_secret: container_registry_password
|
||||
from_secret: local_password
|
||||
tags: ${CI_COMMIT_SHA}
|
||||
dockerfile: Dockerfile
|
||||
when:
|
||||
- event: [push, tag]
|
||||
scan_image:
|
||||
image: aquasec/trivy
|
||||
commands:
|
||||
- trivy image $FORGE_NAME/$CI_REPO:$CI_COMMIT_SHA --quiet --exit-code 1
|
||||
when:
|
||||
- event: [push, tag]
|
||||
build:
|
||||
image: plugins/kaniko
|
||||
settings:
|
||||
repo: quay.io/wollud1969/k8s-admin-helper
|
||||
registry: quay.io
|
||||
tags:
|
||||
- latest
|
||||
- ${CI_COMMIT_TAG}
|
||||
registry:
|
||||
from_secret: quay_registry
|
||||
username:
|
||||
from_secret: quay_username
|
||||
password:
|
||||
from_secret: quay_password
|
||||
tags:
|
||||
- latest
|
||||
- ${CI_COMMIT_TAG}
|
||||
dockerfile: Dockerfile
|
||||
when:
|
||||
- event: [tag]
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
FROM alpine:latest
|
||||
FROM alpine:3.22.2
|
||||
|
||||
ARG USER="user"
|
||||
|
||||
RUN apk add --no-cache kubectl gpg gpg-agent bash && \
|
||||
RUN apk add --no-cache kubectl gpg gpg-agent bash curl helm podman && \
|
||||
addgroup $USER && \
|
||||
adduser -G $USER -D $USER
|
||||
|
||||
|
||||
Reference in New Issue
Block a user