Skip to content

Commit

Permalink
fix(ci): debug build (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChandonPierre authored Jan 19, 2024
2 parents 8c37bb7 + 0b0016d commit ac8bb32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ build-standard:
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
script: |-
/kaniko/executor \
$KANIKO_ADDTL_ARGS \
--context ${CI_PROJECT_DIR} \
--build-arg DEBUG_IMAGE=${DEBUG_IMAGE} \
--dockerfile $DOCKERFILE \
Expand Down Expand Up @@ -60,7 +59,6 @@ build-debug:
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
script: |-
/kaniko/executor \
$KANIKO_ADDTL_ARGS \
--context ${CI_PROJECT_DIR} \
--build-arg DEBUG_IMAGE=${DEBUG_IMAGE} \
--dockerfile $DOCKERFILE \
Expand Down Expand Up @@ -110,8 +108,7 @@ release-standard:
- export RELEASE_IMAGE=$CI_REGISTRY_IMAGE:$BUILD_VERSION
script: |-
/kaniko/executor \
$KANIKO_ADDTL_ARGS \
--context . \
--context ${CI_PROJECT_DIR} \
--dockerfile $DOCKERFILE \
--build-arg DEBUG_IMAGE=${DEBUG_IMAGE} \
--destination $RELEASE_IMAGE \
Expand Down Expand Up @@ -139,8 +136,7 @@ release-debug:
- export RELEASE_IMAGE=$CI_REGISTRY_IMAGE:$BUILD_VERSION-debug
script: |-
/kaniko/executor \
$KANIKO_ADDTL_ARGS \
--context . \
--context ${CI_PROJECT_DIR} \
--dockerfile $DOCKERFILE \
--build-arg DEBUG_IMAGE=${DEBUG_IMAGE} \
--destination $RELEASE_IMAGE \
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ RUN apk upgrade --no-cache --update
RUN apk add --no-cache --update tzdata pcre zlib libssl3

# If set to 1, enables building debug version of nginx, which is super-useful, but also heavy to build.
ARG DEBUG_IMAGE
ARG DO_DEBUG_BUILD="${DEBUG_IMAGE:-"0"}"

ENV NGINX_VERSION 1.25.3
Expand Down

0 comments on commit ac8bb32

Please sign in to comment.