-
Notifications
You must be signed in to change notification settings - Fork 45
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
chore(ci): Create docker images for commits in cd/staging
#1090
chore(ci): Create docker images for commits in cd/staging
#1090
Conversation
.circleci/config.yml
Outdated
@@ -346,7 +303,7 @@ jobs: | |||
# used in `build-docker-images` workflow below | |||
branch_filters: &branch_filters | |||
branches: | |||
only: /.*deploy.*/ | |||
only: /cd\/staging/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are reusing prior behavior. This causes us to detect changes on cd/staging
and trigger this job.
@@ -89,7 +55,8 @@ jobs: | |||
echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin | |||
sanitized_branch=`echo $CIRCLE_BRANCH | sed 's:/:-:g'` | |||
tag_suffix=$(echo "$CIRCLE_SHA1" | cut -c 1-8) | |||
make docker-mainnet-push LILY_IMAGE_TAG=${sanitized_branch}-${tag_suffix} | |||
tag_date=$(date +%Y%m%d%H%M) | |||
make docker-mainnet-push LILY_IMAGE_TAG=${sanitized_branch}-${tag_date}-${tag_suffix} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new docker image tags that are created look like cd-staging-${tag_date}-${tag_suffix}
. This is what we will filter on when deciding what to deploy into staging.
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #1090 +/- ##
======================================
Coverage 34.2% 34.2%
======================================
Files 44 44
Lines 2945 2945
======================================
Hits 1008 1008
Misses 1841 1841
Partials 96 96 |
This PR causes commits to the branch
cd/staging
to trigger docker image build pipeline.