Something went wrong on our end
-
Jared Kosanovic authored
For some reason, the python package didn't include pip. Since we weren't using python for any other purpose in this build, I replaced it with py-pip.
Jared Kosanovic authoredFor some reason, the python package didn't include pip. Since we weren't using python for any other purpose in this build, I replaced it with py-pip.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
.gitlab-ci.yml 823 B
stages:
- build
before_script:
- IMAGE_TAG=git-${CI_COMMIT_SHA:0:8}
- IMAGE_NAME="enterprise-integrations/iics_secure_agent:${IMAGE_TAG}"
- ECR_IMAGE_NAME="${AWS_ACCOUNT_ID}.dkr.ecr.us-east-1.amazonaws.com/enterprise-integrations/iics_secure_agent:${IMAGE_TAG}"
- apk update && apk add groff less && apk add py-pip
- pip3 install awscli
- $(aws ecr get-login --no-include-email --region us-east-1)
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 --pull --rm -t ${IMAGE_NAME} .
- docker tag ${IMAGE_NAME} ${ECR_IMAGE_NAME}
- docker push ${ECR_IMAGE_NAME}
only:
refs:
- master
changes:
- Dockerfile
- .gitlab-ci.yml
- run-agent.sh