Skip to content

Commit

Permalink
Add CircleCI image registry configuration (#1228)
Browse files Browse the repository at this point in the history
  • Loading branch information
piontec authored Nov 28, 2023
1 parent bbc11e2 commit 7f880c3
Showing 1 changed file with 5 additions and 35 deletions.
40 changes: 5 additions & 35 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: 2.1
orbs:
architect: giantswarm/[email protected].1
architect: giantswarm/[email protected].5

workflows:
build:
Expand All @@ -13,42 +13,12 @@ workflows:
tags:
only: /^v.*/

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

- architect/push-to-docker:
context: architect
name: push-app-operator-to-quay
image: "quay.io/giantswarm/app-operator"
username_envar: "QUAY_USERNAME"
password_envar: "QUAY_PASSWORD"
requires:
- go-build
filters:
# Trigger the job also on git tag.
tags:
only: /^v.*/

- architect/push-to-docker:
- architect/push-to-registries:
context: architect
name: push-app-operator-to-aliyun
image: "giantswarm-registry.cn-shanghai.cr.aliyuncs.com/giantswarm/app-operator"
username_envar: "ALIYUN_USERNAME"
password_envar: "ALIYUN_PASSWORD"
name: push-to-registries
requires:
- go-build
filters:
# Trigger the job also on git tag.
tags:
only: /^v.*/

Expand All @@ -59,7 +29,7 @@ workflows:
app_catalog_test: "control-plane-test-catalog"
chart: "app-operator"
requires:
- push-app-operator-to-quay
- push-to-registries
filters:
tags:
only: /^v.*/
Expand Down Expand Up @@ -107,8 +77,8 @@ workflows:
app_name: "app-operator"
app_collection_repo: "aws-app-collection"
requires:
- push-app-operator-to-aliyun
- push-app-operator-to-control-plane-app-catalog
- push-to-registries
filters:
branches:
ignore: /.*/
Expand Down

0 comments on commit 7f880c3

Please sign in to comment.