Skip to content

Commit

Permalink
add new templates to publish pipeline (#241)
Browse files Browse the repository at this point in the history
* add new templates to publish pipeline

* hotwire

* fix cwft ref

* fix template name

* remove second template with bad input

* trigger

* add helm dependency update cwft

* trigger after cwft update

* trigger after change

* add helm dependency update cwft

* add helm dependency update cwft

* gopher gold

* testing publish of kubefirst-api to macro rc3

* adds update of gitops-template

* add missing params to argo workflow

* add chartdir

* fix param name

* white space change

* fix file path

* fix input artifact for adjusted content to push

* again

* add new template for pull sign commit push

* trigger new pipeline

* fix repo remote name

* move sed command to after pull

* fix input ref

* adopt workflow on main

---------

Co-authored-by: John Dietz <[email protected]>
  • Loading branch information
jarededwards and johndietz authored Nov 22, 2023
1 parent 19ec936 commit f3c506e
Show file tree
Hide file tree
Showing 2 changed files with 93 additions and 0 deletions.
92 changes: 92 additions & 0 deletions .argo/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,95 @@ spec:
value: '{{workflow.parameters.appName}}'
- name: chartDir
value: 'charts/{{workflow.parameters.appName}}'
- - name: set-app-version-and-bump-macro-chartz
templateRef:
name: cwft-helm
template: set-app-version-and-bump-macro-chart
clusterScope: true
arguments:
artifacts:
- name: repo-source
from: '{{steps.set-chart-versions.outputs.artifacts.repo-source}}'
parameters:
- name: appName
value: '{{workflow.parameters.appName}}'
- name: chartDir
value: 'charts/kubefirst'
- name: nextAppChartVersion
value: '{{steps.get-initial-chart-version.outputs.result}}-rc.{{workflow.parameters.shortSha}}'

- - name: helm-dependency-update
templateRef:
name: cwft-helm
template: dependency-update
clusterScope: true
arguments:
artifacts:
- name: repo-source
from: '{{steps.set-app-version-and-bump-macro-chartz.outputs.artifacts.repo-source}}'
parameters:
- name: chartDir
value: 'charts/kubefirst'

- - name: publish-macro-helm-chart
templateRef:
name: cwft-helm
template: publish-chart
clusterScope: true
arguments:
artifacts:
- name: repo-source
from: '{{steps.helm-dependency-update.outputs.artifacts.repo-source}}'
parameters:
- name: appName
value: charts # sets workingDir
- name: chartDir
value: 'charts/kubefirst'
- - name: output-next-chart-version
templateRef:
name: cwft-helm
template: output-macro-chart-version
clusterScope: true
arguments:
artifacts:
- name: repo-source
from: '{{steps.helm-dependency-update.outputs.artifacts.repo-source}}'
parameters:
- name: appName
value: "charts"
- name: chartDir
value: "charts/kubefirst"
- name: version
value: "next"
- - name: pull-commit-push-charts
templateRef:
name: cwft-git
template: pull-commit-push
clusterScope: true
arguments:
artifacts:
- name: repo-source
from: '{{steps.helm-dependency-update.outputs.artifacts.repo-source}}'
parameters:
- name: commitMessage
value: 'prepared next macro chart for kubefirst - set {{workflow.parameters.appName}} to {{steps.get-initial-chart-version.outputs.result}}-rc.{{workflow.parameters.shortSha}}'
- name: gitUrlNoProtocol
value: '{{workflow.parameters.gitUrlNoProtocol}}'
- name: repoName
value: 'charts'
- - name: pull-commit-push-gitops-template
templateRef:
name: cwft-git
template: pull-sign-commit-push
clusterScope: true
arguments:
artifacts:
- name: repo-source
from: '{{steps.helm-dependency-update.outputs.artifacts.repo-source}}'
parameters:
- name: appName
value: 'gitops-template'
- name: commitMessage
value: 'set next macro chart for kubefirst - {{steps.output-next-chart-version.outputs.result}}'
- name: nextChartVersion
value: "{{steps.output-next-chart-version.outputs.result}}"
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,3 +283,4 @@ go install github.com/swaggo/swag/cmd/swag@latest
```shell
make updateswagger
```

0 comments on commit f3c506e

Please sign in to comment.