Skip to content
Snippets Groups Projects
Commit 5c676e4c authored by Nuwan Rajika Kumarasiri's avatar Nuwan Rajika Kumarasiri
Browse files

Add gitlab-ci file

parent 4877ee9e
No related branches found
No related tags found
No related merge requests found
variables:
stages:
- build
before_script:
- apk update && apk add groff less && apk add python3
- pip3 install awscli
- (aws ecr get-login --no-include-email --region us-east-1) > login.sh
- sh login.sh
after_script:
- docker logout "$AWS_ACCOUNT_ID".dkr.ecr.us-east-1.amazonaws.com
image: docker:latest
build-master:
stage: build
tags:
- docker
script:
- docker build -t enterprise-integrations/iics_secure_agent .
- docker tag enterprise-integrations/iics_secure_agent:latest "$AWS_ACCOUNT_ID".dkr.ecr.us-east-1.amazonaws.com/enterprise-integrations/iics_secure_agent:latest
- docker push "$AWS_ACCOUNT_ID".dkr.ecr.us-east-1.amazonaws.com/enterprise-integrations/iics_secure_agent:latest
only:
refs:
- master
changes:
- Dockerfile
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment