Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CircleCI configuration for pushing to container registries #130

Merged
merged 3 commits into from
Nov 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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