Skip to content

Commit

Permalink
Add CircleCI image registry configuration (#124)
Browse files Browse the repository at this point in the history
Co-authored-by: Jose Armesto <github@armesto.net>
  • Loading branch information
marians and fiunchinho committed Dec 4, 2023
1 parent 001a707 commit f25d4ef
Showing 1 changed file with 5 additions and 38 deletions.
43 changes: 5 additions & 38 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,47 +14,16 @@ workflows:

# Ensure that for every commit (all branches), and for every new release tag,
# an image is pushed to Quay.
- architect/push-to-docker:
context: "architect"
name: push-to-quay
image: "quay.io/giantswarm/aws-pod-identity-restarter"
username_envar: "QUAY_USERNAME"
password_envar: "QUAY_PASSWORD"
requires:
- go-build
filters:
tags:
only: /^v.*/

- architect/push-to-docker:
context: "architect"
name: push-to-docker
image: "docker.io/giantswarm/aws-pod-identity-restarter"
username_envar: "DOCKER_USERNAME"
password_envar: "DOCKER_PASSWORD"
requires:
- go-build
# Needed to trigger job also on git tag.
filters:
tags:
only: /^v.*/

# Ensure that for every commit to master, and for every new release tag,
# an image gets pushed to the Aliyun registry.
- architect/push-to-docker:
context: "architect"
name: push-to-aliyun
image: "giantswarm-registry.cn-shanghai.cr.aliyuncs.com/giantswarm/aws-pod-identity-restarter"
username_envar: "ALIYUN_USERNAME"
password_envar: "ALIYUN_PASSWORD"
- architect/push-to-registries:
context: architect
name: push-to-registries
requires:
- go-build
filters:
branches:
only: master
tags:
only: /^v.*/

image: giantswarm/aws-pod-identity-restarter
- architect/push-to-app-catalog:
context: "architect"
executor: "app-build-suite"
Expand All @@ -63,9 +32,7 @@ workflows:
app_catalog_test: "default-test-catalog"
chart: "aws-pod-identity-webhook"
requires:
- push-to-aliyun
- push-to-quay
- push-to-docker
- push-to-registries
filters:
tags:
only: /^v.*/

0 comments on commit f25d4ef

Please sign in to comment.