Commit 0c16c286 authored by anashwara.pv's avatar anashwara.pv

Update .gitlab-ci.yml

parent b9374dbd
stages:
- build
- test
build:
tags:
- http
stage: build
job:
script:
- docker logout
- docker login -u="anashwaraanu" -p="Anashu@25"
- docker build -t anashwaraanu/micro_service_cicd:latest .
- docker push anashwaraanu/micro_service_cicd:latest
- docker logout
only:
- branchname
- merge_requests
except:
- master
rules:
- if: $CI_MERGE_REQUEST_APPROVED
script:
- docker logout
- docker login -u="anashwaraanu" -p="Anashu@25"
- docker build -t anashwaraanu/micro_service_cicd:latest .
- docker push anashwaraanu/micro_service_cicd:latest
- docker logout
job1:
script:
- echo "This job runs in merge request pipelines"
only:
- branchname
- merge_requests
except:
- master
workflow:
rules:
- if: $CI_MERGE_REQUEST_APPROVED
test:
stage: test
script:
......
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