Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CCE Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MEDINA
Public
CCE Frontend
Commits
cbed44e2
Commit
cbed44e2
authored
2 years ago
by
Zitnik, Anze
Browse files
Options
Downloads
Patches
Plain Diff
Remove CI script
parent
10bede20
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+0
-46
0 additions, 46 deletions
.gitlab-ci.yml
with
0 additions
and
46 deletions
.gitlab-ci.yml
deleted
100644 → 0
+
0
−
46
View file @
10bede20
image
:
nexus-registry.xlab.si:5001/docker:stable
variables
:
REGISTRY
:
registry-gitlab.xlab.si
MEDINA_REGISTRY
:
optima-medina-docker-dev.artifact.tecnalia.com
MEDINA_REG_PATH
:
wp4/t41
stages
:
-
build
-
push
-
deploy
before_script
:
-
mkdir -p $HOME/.docker
-
echo "$DOCKER_AUTH_CONFIG" > $HOME/.docker/config.json
-
export SERVICE=cce-frontend
-
export VERSION=$(grep -w "version" package.json | cut -d ':' -f 2 | cut -d ',' -f 1 | xargs echo)
build
:
stage
:
build
script
:
docker build --no-cache -t $REGISTRY/medina/$SERVICE:$VERSION .
push
:
stage
:
push
script
:
-
docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $REGISTRY
-
docker tag $REGISTRY/medina/$SERVICE:$VERSION $REGISTRY/medina/$SERVICE:latest
-
docker push $REGISTRY/medina/$SERVICE:$VERSION
-
docker push $REGISTRY/medina/$SERVICE:latest
-
docker logout $REGISTRY
-
docker login $MEDINA_REGISTRY -u medina.fordevelopers@gmail.com -p --password--
-
docker tag $REGISTRY/medina/$SERVICE:$VERSION $MEDINA_REGISTRY/$MEDINA_REG_PATH/$SERVICE:$VERSION
-
docker tag $REGISTRY/medina/$SERVICE:$VERSION $MEDINA_REGISTRY/$MEDINA_REG_PATH/$SERVICE:latest
-
docker push $MEDINA_REGISTRY/$MEDINA_REG_PATH/$SERVICE:$VERSION
-
docker push $MEDINA_REGISTRY/$MEDINA_REG_PATH/$SERVICE:latest
-
docker logout $MEDINA_REGISTRY
only
:
-
master
deploy
:
stage
:
deploy
script
:
-
docker run --rm curlimages/curl -I -X POST "https://xlab:--pasword--@cicd.medina.esilab.org/jenkins/job/medina/job/wp4/job/task_4.1/job/cce-deploy/buildWithParameters?PRJ_ENV=dev&PRJ_IMAGE_TAG=latest&YAMLS_OVERRIDE="
only
:
-
master
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment