Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
98e2bee2a5 | ||
|
|
4b25e62b52 | ||
|
|
1c08727c5d | ||
|
|
af84720d71 | ||
|
|
c748c4f928 | ||
|
|
5164551f98 |
@@ -11,9 +11,6 @@ build:
|
|||||||
image:
|
image:
|
||||||
name: gcr.io/kaniko-project/executor:v1.6.0-debug
|
name: gcr.io/kaniko-project/executor:v1.6.0-debug
|
||||||
entrypoint: ["/busybox/sh", "-c"]
|
entrypoint: ["/busybox/sh", "-c"]
|
||||||
variables:
|
|
||||||
BASE_TAG: latest
|
|
||||||
FLAVOR: stable
|
|
||||||
script:
|
script:
|
||||||
- 'mkdir -p /kaniko/.docker'
|
- 'mkdir -p /kaniko/.docker'
|
||||||
- 'echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json'
|
- 'echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json'
|
||||||
@@ -36,5 +33,7 @@ build:
|
|||||||
--context $CI_PROJECT_DIR \
|
--context $CI_PROJECT_DIR \
|
||||||
--dockerfile $CI_PROJECT_DIR/Containerfile \
|
--dockerfile $CI_PROJECT_DIR/Containerfile \
|
||||||
--destination "${CI_REGISTRY_IMAGE}:${IMAGE_TAG}" \
|
--destination "${CI_REGISTRY_IMAGE}:${IMAGE_TAG}" \
|
||||||
--build-arg "BASE_TAG=$BASE_TAG" \
|
--label "org.opencontainers.image.source=${CI_PROJECT_URL}" \
|
||||||
--build-arg "FLAVOR=$FLAVOR"
|
--label "org.opencontainers.image.revision=$CI_COMMIT_SHA" \
|
||||||
|
--label "org.opencontainers.image.created=$CI_JOB_STARTED_AT" \
|
||||||
|
--label "org.opencontainers.image.version=${IMAGE_TAG}"
|
||||||
|
|||||||
@@ -6,9 +6,7 @@
|
|||||||
# https://docs.gitlab.com/runner/executors/docker.html#use-podman-to-run-docker-commands
|
# https://docs.gitlab.com/runner/executors/docker.html#use-podman-to-run-docker-commands
|
||||||
#
|
#
|
||||||
|
|
||||||
ARG FLAVOR="stable"
|
FROM quay.io/podman/stable:v4.3.1
|
||||||
ARG BASE_TAG="latest"
|
|
||||||
FROM quay.io/podman/$FLAVOR:$BASE_TAG
|
|
||||||
|
|
||||||
# This is a list of packages to remove and/or exclude from the image.
|
# This is a list of packages to remove and/or exclude from the image.
|
||||||
# Primarily this is done for security reasons, should a runner process
|
# Primarily this is done for security reasons, should a runner process
|
||||||
|
|||||||
Reference in New Issue
Block a user