Skip to content
Snippets Groups Projects
Commit e7eff7eb authored by Fajar Herawan's avatar Fajar Herawan
Browse files

Update .gitlab-ci.yml file

parent 288bfed9
Branches
Tags
No related merge requests found
Pipeline #66068 passed with stage
in 3 minutes and 56 seconds
...@@ -19,8 +19,6 @@ build-job: # This job runs in the build stage, which runs first. ...@@ -19,8 +19,6 @@ build-job: # This job runs in the build stage, which runs first.
DOCKER_TLS_CERTDIR: "" DOCKER_TLS_CERTDIR: ""
services: services:
- name: 'docker:dind' - name: 'docker:dind'
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event' && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == 'main'
script: script:
- echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER $CI_REGISTRY --password-stdin - echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER $CI_REGISTRY --password-stdin
- docker build --platform linux/amd64 -t gitlab.informatika.org:4567/k-01-11/graduit-be -f Dockerfile.production . - docker build --platform linux/amd64 -t gitlab.informatika.org:4567/k-01-11/graduit-be -f Dockerfile.production .
......
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