Skip to content

Commit

Permalink
[circleci] build main at cadence
Browse files Browse the repository at this point in the history
  • Loading branch information
rustielin authored and aptos-bot committed Mar 11, 2022
1 parent 48c46b2 commit edb3e4d
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ jobs:
docker:
- image: cimg/base:stable
resource_class: medium
parameters:
addl_tag:
description: Additional image tag
type: string
default: latest
steps:
- checkout
- aws-setup
Expand All @@ -67,7 +72,7 @@ jobs:
ret=$?
if [ $ret -ne 0 ]; then
echo "Image tag $IMAGE_TAG not present. Starting build..."
./docker/build-aws.sh --build-all --version $(git rev-parse --short=8 HEAD) --addl_tags latest
./docker/build-aws.sh --build-all --version $(git rev-parse --short=8 HEAD) --addl_tags "<<parameters.addl_tag>>"
else
echo "Image tag $IMAGE_TAG already present. Skipping build..."
fi
Expand Down Expand Up @@ -142,6 +147,19 @@ workflows:
context: aws-dev
requires:
- docker-build-push
### Automated workflows
continuous-push:
triggers:
- schedule:
cron: "15 0,4,8,12,16,20 * * *"
filters:
branches:
only:
- main
jobs:
- docker-build-push:
context: aws-dev
addl_tag: main
commands:
dev-setup:
steps:
Expand Down

0 comments on commit edb3e4d

Please sign in to comment.