fix ci
This commit is contained in:
parent
2629151a04
commit
45990c890d
1 changed files with 21 additions and 12 deletions
|
|
@ -1,19 +1,28 @@
|
|||
image: docker:latest
|
||||
default:
|
||||
image: quay.io/podman/stable
|
||||
|
||||
variables:
|
||||
IMAGE_NAME: "ci.perditum.com/perditum/rnex-splatoon"
|
||||
DOCKER_TLS_CERTDIR: "/certs"
|
||||
IMAGE_TAG: "${CI_COMMIT_REF_SLUG}"
|
||||
|
||||
before_script:
|
||||
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" ci.perditum.com
|
||||
|
||||
stages:
|
||||
- build-and-push
|
||||
- test
|
||||
- build-and-push-image
|
||||
- push-retagged-branch
|
||||
- push-retagged-latest
|
||||
|
||||
build-and-push:
|
||||
stage: build-and-push
|
||||
build-and-push-image:
|
||||
stage: build-and-push-image
|
||||
script:
|
||||
- docker build -t "$IMAGE_NAME:$IMAGE_TAG" .
|
||||
- docker tag "$IMAGE_NAME:$IMAGE_TAG" "$IMAGE_NAME:latest"
|
||||
- docker push "$IMAGE_NAME:$IMAGE_TAG"
|
||||
- docker push "$IMAGE_NAME:latest"
|
||||
- git submodule update --init
|
||||
- podman login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
||||
- podman build -t "$CI_REGISTRY_IMAGE/node-holder:$CI_COMMIT_SHORT_SHA" --target=node-holder .
|
||||
- podman build -t "$CI_REGISTRY_IMAGE/proxy-secure-v1:$CI_COMMIT_SHORT_SHA" --target=proxy-secure-v1 .
|
||||
- podman build -t "$CI_REGISTRY_IMAGE/proxy-insecure-v1:$CI_COMMIT_SHORT_SHA" --target=proxy-insecure-v1 .
|
||||
- podman build -t "$CI_REGISTRY_IMAGE/backend-auth:$CI_COMMIT_SHORT_SHA" --target=backend-auth .
|
||||
- podman build -t "$CI_REGISTRY_IMAGE/backend-secure:$CI_COMMIT_SHORT_SHA" --target=backend-secure .
|
||||
- podman push "$CI_REGISTRY_IMAGE/node-holder:$CI_COMMIT_SHORT_SHA"
|
||||
- podman push "$CI_REGISTRY_IMAGE/proxy-secure-v1:$CI_COMMIT_SHORT_SHA"
|
||||
- podman push "$CI_REGISTRY_IMAGE/proxy-insecure-v1:$CI_COMMIT_SHORT_SHA"
|
||||
- podman push "$CI_REGISTRY_IMAGE/backend-auth:$CI_COMMIT_SHORT_SHA"
|
||||
- podman push "$CI_REGISTRY_IMAGE/backend-secure:$CI_COMMIT_SHORT_SHA"
|
||||
Loading…
Add table
Add a link
Reference in a new issue