Skip to content

Commit

Permalink
Update CircleCI configuration for pushing to container registries (#130)
Browse files Browse the repository at this point in the history
* Add CircleCI image registry configuration

* Remove job, use workflow, use orb's push-to-registries job

* Fix syntax error
  • Loading branch information
marians authored Nov 29, 2023
1 parent f9826d8 commit 993203e
Showing 1 changed file with 8 additions and 25 deletions.
33 changes: 8 additions & 25 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,27 @@
version: 2.1

orbs:
architect: giantswarm/[email protected]

jobs:
build:
executor: architect/architect
environment:
DOCKER_BUILDKIT: "1"

steps:
- checkout

- setup_remote_docker:
version: 20.10.11

- architect/push-to-docker:
image: quay.io/giantswarm/docs-proxy
tag-latest-branch: main
username_envar: QUAY_USERNAME
password_envar: QUAY_PASSWORD
architect: giantswarm/[email protected]

workflows:
package-and-push-chart-on-tag:
build-workflow:
jobs:
- build:
- architect/push-to-registries:
context: architect
filters: # required since `architect/push-to-app-catalog` has tag filters AND requires `build`
name: push-to-registries
filters:
tags:
only: /.*/

- architect/push-to-app-catalog:
name: package and push
name: push-to-app-catalog
context: architect
app_catalog: giantswarm-operations-platform-catalog
app_catalog_test: giantswarm-operations-platform-test-catalog
chart: docs-proxy-app
requires:
- push-to-registries
# Trigger job on git tag.
filters:
tags:
only: /^v.*/
requires:
- build

0 comments on commit 993203e

Please sign in to comment.