Skip to content

Commit

Permalink
STAC-0: rebuild wolverminion images
Browse files Browse the repository at this point in the history
  • Loading branch information
fvlankvelt committed Feb 7, 2024
1 parent a5d06ec commit fb8c6ff
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,35 @@ services:
stages:
- build

build-featureflag:
.build-service:
tags:
- sts-k8s-xl-no-agent-runner
stage: build
image: ${DOCKER_PROXY_URL}/docker:20-git
script:
- echo "${quay_password}" | docker login --username=${quay_user} --password-stdin quay.io
- echo "${artifactory_password}" | docker login --username=${artifactory_user} --password-stdin artifactory.tooling.stackstate.io
- DST_TAG="${OPENTELEMETRY_DEMO_VERSION}-${CI_COMMIT_SHORT_SHA}-featureflagservice"
- DST_TAG="${OPENTELEMETRY_DEMO_VERSION}-${CI_COMMIT_SHORT_SHA}-${SERVICE}"
# fix for https://github.com/docker/buildx/issues/493
- docker run --privileged --rm artifactory.tooling.stackstate.io/docker-virtual/tonistiigi/binfmt --install all
- docker buildx create --name builder --use --bootstrap
- docker buildx build --label "published-by=${CI_JOB_URL}" --platform linux/amd64,linux/arm64 --file "$CI_PROJECT_DIR/src/featureflagservice/Dockerfile" --tag "${DST_REPOSITORY}:${DST_TAG}" --push "$CI_PROJECT_DIR"
- docker buildx build --label "published-by=${CI_JOB_URL}" --platform linux/amd64,linux/arm64 --file "$CI_PROJECT_DIR/src/${SERVICE}/Dockerfile" --tag "${DST_REPOSITORY}:${DST_TAG}" --push "$CI_PROJECT_DIR"
retry:
max: 2
when:
- always

build-featureflag:
extends: .build-service
variables:
SERVICE: featureflagservice

build-adservice:
extends: .build-service
variables:
SERVICE: adservice

build-frauddetection:
extends: .build-service
variables:
SERVICE: frauddetectionservice

0 comments on commit fb8c6ff

Please sign in to comment.