Commit b5c2703a authored by anashwara.pv's avatar anashwara.pv

Update .gitlab-ci.yml

parent c27b075e
Pipeline #37825 failed
...@@ -6,27 +6,29 @@ build: ...@@ -6,27 +6,29 @@ build:
tags: tags:
- http - http
stage: build stage: build
script:
- docker logout
- docker login -u="anashwaraanu" -p="Anashu@25" workflow:
- docker build -t anashwaraanu/micro_service_cicd:latest . rules:
- docker push anashwaraanu/micro_service_cicd:latest - if: $CI_MERGE_REQUEST_APPROVED
- docker logout
job1:
workflow: script:
rules: - docker logout
- if: $CI_MERGE_REQUEST_APPROVED - docker login -u="anashwaraanu" -p="Anashu@25"
.... - docker build -t anashwaraanu/micro_service_cicd:latest .
stagename: - docker push anashwaraanu/micro_service_cicd:latest
stage: stage - docker logout
only: stagename:
- branchname stage: stage
- merge_requests only:
except: - branchname
- master - merge_requests
except:
- master
test: test:
stage: test stage: test
script: script:
- echo "Testing" - echo "Testing"
\ 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