Skip to content
Snippets Groups Projects
Verified Commit 0823a7d4 authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

Rework CI instructions to use build-ah-engine template

parent 5e5a08b2
No related branches found
No related tags found
No related merge requests found
Pipeline #2937 passed
image: quay.io/sheogorath/build-ah-engine:1.0.0
include:
- project: container-library/build-ah-engine
ref: 1.2.0
file: /gitlab-ci-template.yml
before_script:
- podman login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
stages:
- analyse
- build
- test
- tag
- deploy
build:
stage: build
script:
- podman build --pull --build-arg "VCS_REF=$CI_COMMIT_SHA" --build-arg "BUILD_DATE=$(date --rfc-3339 ns)" -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" .
- podman push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
variables:
CI_REGISTRY_BUILD_ARG: "--build-arg \"VCS_REF=$CI_COMMIT_SHA\" --build-arg \"BUILD_DATE=$(date --rfc-3339 ns)\""
CI_REGISTRY_IMAGE_VERSION: "$(grep -e 'FROM docker.io/library/haproxy:' Dockerfile | sed -e 's/.*://' -e 's/-alpine$//')"
tagging-deploy:
stage: tag
script:
- podman pull "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
- si-tagging -l "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" "$CI_REGISTRY_IMAGE" "$(grep -e 'FROM docker.io/library/haproxy:' Dockerfile | sed -e 's/.*://' -e 's/-alpine$//')"
- si-push "$CI_REGISTRY_IMAGE"
container-tagging:
only:
- deploy
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment