swap helm charts call to GHA - TEST

This commit is contained in:
Claire 2023-02-03 16:57:43 -06:00
parent 05b1a41e14
commit b8002af79e

View file

@ -1,11 +1,13 @@
version: 2.1 version: 2.1
orbs: # orbs:
slack: circleci/slack@3.4.2 # slack: circleci/slack@3.4.2
jobs: jobs:
update-helm-charts-index: update-helm-charts-index:
docker: docker:
- image: docker.mirror.hashicorp.services/cimg/go:1.19.2 - image: docker.mirror.hashicorp.services/cimg/go:1.19.2
environment:
CIRCLE_TAG: v0.23.0
steps: steps:
- checkout - checkout
- run: - run:
@ -36,18 +38,18 @@ jobs:
export GITHUB_TOKEN="${HELM_CHARTS_GITHUB_TOKEN}" export GITHUB_TOKEN="${HELM_CHARTS_GITHUB_TOKEN}"
gh workflow run .github/workflows/publish-charts.yml \ gh workflow run .github/workflows/publish-charts.yml \
--repo hashicorp/helm-charts \ --repo hashicorp/helm-charts \
--ref main \ --ref templates_default_test \
-f SOURCE_TAG="${CIRCLE_TAG}" \ -f SOURCE_TAG="${CIRCLE_TAG}" \
-f SOURCE_REPO="${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}" -f SOURCE_REPO="${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}"
- slack/status: # - slack/status:
fail_only: true # fail_only: true
failure_message: "Failed to trigger an update to the helm charts index. Check the logs at: ${CIRCLE_BUILD_URL}" # failure_message: "Failed to trigger an update to the helm charts index. Check the logs at: ${CIRCLE_BUILD_URL}"
parameters: # parameters:
release-tag: # release-tag:
type: string # type: string
default: "" # default: ""
description: "The tag to release, including v, e.g. v0.22.1" # description: "The tag to release, including v, e.g. v0.22.1"
workflows: workflows:
version: 2 version: 2
@ -56,13 +58,13 @@ workflows:
jobs: jobs:
- update-helm-charts-index: - update-helm-charts-index:
context: helm-charts-trigger-vault context: helm-charts-trigger-vault
filters: # filters:
tags: # tags:
only: /^v.*/ # only: /^v.*/
branches: # branches:
ignore: /.*/ # ignore: /.*/
manual-trigger-update-helm-charts-index: # manual-trigger-update-helm-charts-index:
when: << pipeline.parameters.release-tag >> # when: << pipeline.parameters.release-tag >>
jobs: # jobs:
- update-helm-charts-index: # - update-helm-charts-index:
context: helm-charts-trigger-vault # context: helm-charts-trigger-vault