Skip to content

Commit

Permalink
abc11123
Browse files Browse the repository at this point in the history
  • Loading branch information
btungut committed Nov 6, 2023
1 parent d6ec708 commit 1a175fc
Showing 1 changed file with 26 additions and 17 deletions.
43 changes: 26 additions & 17 deletions .github/workflows/CI-feature.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ jobs:
helm dependency update .
working-directory: app

- name: helm details
- name: helm modify
id: helm-modify
shell: bash
run: |
set -euo pipefail
Expand All @@ -79,7 +80,6 @@ jobs:
$MODIFY_YAML_SCRIPT "Chart.yaml" ".version" "$NEW_CHART_VERSION"
$MODIFY_YAML_SCRIPT "Chart.yaml" ".appVersion" "${REV_UNIQUE}-$GIT_COMMIT_ID"
$MODIFY_YAML_SCRIPT "Chart.yaml" ".description" "$GIT_COMMIT_MSG"
$MODIFY_YAML_SCRIPT "Chart.yaml" '.annotations["github.com/hash"]' "$GIT_COMMIT_ID"
$MODIFY_YAML_SCRIPT "Chart.yaml" '.annotations["github.com/run-url"]' "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
Expand All @@ -95,22 +95,31 @@ jobs:
echo "--- values.yaml ---"
working-directory: app


results:
name: test results
needs:
- docker
- helm
if: success()
runs-on: ubuntu-latest
steps:
- name: helm validation
shell: bash
run: |
set -euo pipefail
cd $HELM_DIR
tree .
echo "helm lint is running..."
helm lint .
echo "helm lint is completed"
echo "helm template is running..."
helm template .
echo "helm template is completed"
working-directory: app

- name: test
- name: git push
shell: bash
run: |
set -euo pipefail
cd $HELM_DIR
echo "GIT_COMMIT_ID = ${{ needs.docker.outputs.GIT_COMMIT_ID }}"
echo "GIT_COMMIT_MESSAGE = ${{ needs.docker.outputs.GIT_COMMIT_MSG }}"
echo "GIT_COMITTER = ${{ needs.docker.outputs.GIT_COMITTER }}"
echo "GIT_COMMIT_DATE = ${{ needs.docker.outputs.GIT_COMMIT_DATE }}"
echo "DOCKER_IMAGE = ${{ needs.docker.outputs.DOCKER_IMAGE }}"
git fetch origin
git pull origin ${{ github.ref }}
git add .
git commit -m "helm chart is upgraded to $NEW_CHART_VERSION [no ci]"
git push origin ${{ github.ref }}
working-directory: app

0 comments on commit 1a175fc

Please sign in to comment.