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

Update .gitlab-ci.yml

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