Commit 59dc6375 authored by Sasha Ilieva's avatar Sasha Ilieva
Browse files

Merge branch 'ci' into 'master'

Ci

See merge request !2
parents 0b5b1c42 21e610f3
Pipeline #34968 passed with stages
in 25 seconds
variables:
DOCKER_CLI_EXPERIMENTAL: 'enabled'
JOB_IMAGE: $CI_REGISTRY/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/$CI_JOB_NAME:$CI_COMMIT_REF_NAME
IMAGE_amd64: $CI_REGISTRY/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/amd64:$CI_COMMIT_REF_NAME
IMAGE_ppc64le: $CI_REGISTRY/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/ppc64le:$CI_COMMIT_REF_NAME
MANIFEST_IMAGE: $CI_REGISTRY/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME:$CI_COMMIT_REF_NAME
AZURE_IMAGE: ${AZURE_LIGHT_REGISTRY_URL}/clients/$CI_PROJECT_NAME:$CI_COMMIT_REF_NAME
GOOGLE_IMAGE: ${GOOGLE_LIGHT_REGISTRY_URL}/clients/$CI_PROJECT_NAME:$CI_COMMIT_REF_NAME
stages:
- build
- manifest
before_script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
.build:
script:
- docker build --build-arg GITLAB_LOGIN=gitlab-ci-token --build-arg GITLAB_PASSWORD=$CI_JOB_TOKEN --pull -t $JOB_IMAGE -f deployment/ci/Dockerfile .
- docker push $JOB_IMAGE
ppc64le:
extends: .build
stage: build
tags:
- ppc64le-docker
- docker
amd64:
extends: .build
stage: build
tags:
- amd64-docker
- docker
manifest:
stage: manifest
tags:
- amd64-docker
script:
- docker manifest create $MANIFEST_IMAGE $IMAGE_amd64 $IMAGE_ppc64le
- docker manifest push $MANIFEST_IMAGE
# manifest-azure:
# stage: manifest
# tags:
# - amd64-docker
# script:
# - docker login -u $AZURE_LIGHT_REGISTRY_USER -p $AZURE_LIGHT_REGISTRY_PASSWORD $AZURE_LIGHT_REGISTRY_URL
# - docker pull $IMAGE_amd64
# - docker tag $IMAGE_amd64 $AZURE_IMAGE
# - docker push $AZURE_IMAGE
# only:
# refs:
# - master
# - tags
# manifest-google:
# stage: manifest
# tags:
# - amd64-docker
# script:
# - echo "$GOOGLE_AUTH" | docker login -u _json_key --password-stdin https://eu.gcr.io
# - docker pull $IMAGE_amd64
# - docker tag $IMAGE_amd64 $GOOGLE_IMAGE
# - docker push $GOOGLE_IMAGE
# only:
# refs:
# - master
# - tags
\ No newline at end of file
node_modules
yarn-error.log
.git
deployment
\ No newline at end of file
FROM nginx:stable-alpine
RUN rm -rf /usr/share/nginx/html/*
COPY . /usr/share/nginx/html/
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
\ No newline at end of file
node_modules
yarn-error.log
.git
deployment
\ No newline at end of file
FROM nginx:stable-alpine
RUN rm -rf /usr/share/nginx/html/*
COPY . /usr/share/nginx/html/
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment