Skip to content

Commit

Permalink
CircleCI config to build tags
Browse files Browse the repository at this point in the history
  • Loading branch information
r351574nc3 committed Dec 13, 2023
1 parent d05b06e commit 347e050
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
version: 2.1

orbs:
aws-cli: circleci/[email protected]
aws-ecr: circleci/[email protected]

workflows:
version: 2
build_and_push_image:
# when:
# and:
# - equal: [ true, << pipeline.parameters.docker_images >> ]
jobs:
- aws-ecr/build_and_push_image:
account_id: ${AWS_ACCOUNT_ID}
auth:
- aws-cli/setup
context:
- org-global
repo: metabase-k8s
extra_build_args: '--compress'
platform: linux/amd64
push_image: true
region: ${AWS_DEFAULT_REGION}
skip_when_tags_exist: true
tag: latest,${CIRCLE_SHA1},${CIRCLE_TAG}
filters:
tags:
only: /^v\d+\.\d+\.\d+$/
branches:
ignore: /.*/

0 comments on commit 347e050

Please sign in to comment.