Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate issue with image tagging #410

Merged
merged 3 commits into from
Dec 21, 2020
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,14 @@ commands:
tag:
type: string
steps:
- run:
name: Setup Environment Variables
command: |
echo "export REGISTRY=public.ecr.aws/sumologic" >> $BASH_ENV
echo "export TAG_URL=${REGISTRY}/<< parameters.repo >>:<< parameters.tag >>" >> $BASH_ENV
echo "export LATEST_URL${REGISTRY}/<< parameters.repo >>:latest" >> $BASH_ENV
- run:
name: Build image
environment:
REGISTRY: public.ecr.aws/sumologic
TAG_URL: ${REGISTRY}/<< parameters.repo >>:<< parameters.tag >>
LATEST_URL: ${REGISTRY}/<< parameters.repo >>:latest
command: |
make docker-otelcontribcol
docker tag otelcontribcol:latest ${TAG_URL}
Expand All @@ -126,20 +128,16 @@ commands:
environment:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_PUBLIC_ECR_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_PUBLIC_ECR_SECRET_ACCESS_KEY }}
REGISTRY: public.ecr.aws/sumologic
command: |
aws ecr get-login-password --region us-east-1
| docker login --username AWS --password-stdin ${REGISTRY}
- run:
name: Push image
environment:
REGISTRY: public.ecr.aws/sumologic
TAG_URL: ${REGISTRY}/<< parameters.repo >>:<< parameters.tag >>
LATEST_URL: ${REGISTRY}/<< parameters.repo >>:latest
command: |
docker push ${TAG_URL}
docker push ${LATEST_URL}


workflows:
version: 2
stability-tests:
Expand Down Expand Up @@ -556,4 +554,4 @@ jobs:
fi
- persist_to_workspace:
root: ~/
paths: project/dist/*.<< parameters.package_type >>
paths: project/dist/*.<< parameters.package_type >>