diff --git a/.github/workflows/build-deploy-js.yml b/.github/workflows/build-deploy-js.yml index df25c90..316b48c 100644 --- a/.github/workflows/build-deploy-js.yml +++ b/.github/workflows/build-deploy-js.yml @@ -55,6 +55,10 @@ on: required: false type: string default: npm run build + include_chart: + required: false + type: boolean + default: true secrets: GH_PAT: @@ -149,9 +153,11 @@ jobs: run: ${{ inputs.rails }} - name: Sync Chart.yaml version + if: ${{ inputs.include_chart }} run: yq eval -i ".appVersion=\"${{ env.VERSION }}\"" ./helm/Chart.yaml - name: Sync values.yaml version + if: ${{ inputs.include_chart }} run: yq eval -i ".${{ env.CAMEL_CASE_REPO_NAME }}.image.version=\"${{ env.VERSION }}\"" ./helm/values.yaml - name: Install Dependencies @@ -396,9 +402,10 @@ jobs: echo "VERSION=$VERSION_VALUE" >> $GITHUB_ENV - name: Update Chart.yaml version - if: ${{ inputs.update_version }} + if: ${{ inputs.update_version && inputs.include_chart }} run: yq eval -P -i ".appVersion=\"${{ env.VERSION }}\"" ./helm/Chart.yaml - name: Update values.yaml version + if: ${{ inputs.update_version && inputs.include_chart }} run: yq eval -P -i ".${{ env.CAMEL_CASE_REPO_NAME }}.image.version=\"${{ env.VERSION }}\"" ./helm/values.yaml - name: Update package-lock.json diff --git a/.github/workflows/build-deploy-ts.yml b/.github/workflows/build-deploy-ts.yml index dae4bdf..5c451c2 100644 --- a/.github/workflows/build-deploy-ts.yml +++ b/.github/workflows/build-deploy-ts.yml @@ -55,6 +55,10 @@ on: required: false type: string default: npm run build + include_chart: + required: false + type: boolean + default: true secrets: GH_PAT: @@ -148,9 +152,11 @@ jobs: run: ${{ inputs.rails }} - name: Sync Chart.yaml version + if: ${{ inputs.include_chart }} run: yq eval -i ".appVersion=\"${{ env.VERSION }}\"" ./helm/Chart.yaml - name: Sync values.yaml version + if: ${{ inputs.include_chart }} run: yq eval -i ".${{ env.CAMEL_CASE_REPO_NAME }}.image.version=\"${{ env.VERSION }}\"" ./helm/values.yaml - name: Install Dependencies @@ -395,9 +401,10 @@ jobs: echo "VERSION=$VERSION_VALUE" >> $GITHUB_ENV - name: Update Chart.yaml version - if: ${{ inputs.update_version }} + if: ${{ inputs.update_version && inputs.include_chart }} run: yq eval -P -i ".appVersion=\"${{ env.VERSION }}\"" ./helm/Chart.yaml - name: Update values.yaml version + if: ${{ inputs.update_version && inputs.include_chart }} run: yq eval -P -i ".${{ env.CAMEL_CASE_REPO_NAME }}.image.version=\"${{ env.VERSION }}\"" ./helm/values.yaml - name: Update package-lock.json diff --git a/.github/workflows/cut-release-common.yml b/.github/workflows/cut-release-common.yml index 211984b..0faadb1 100644 --- a/.github/workflows/cut-release-common.yml +++ b/.github/workflows/cut-release-common.yml @@ -35,7 +35,7 @@ on: include_chart: required: false type: boolean - default: false + default: true needs_docker: required: false type: boolean @@ -179,9 +179,11 @@ jobs: echo "VERSION=$NEW_VERSION" >> $GITHUB_ENV - name: Update Chart.yaml version + if: ${{ inputs.include_chart }} run: yq eval -P -i ".appVersion=\"${{ env.VERSION }}\"" ./helm/Chart.yaml - name: Update values.yaml version + if: ${{ inputs.include_chart }} run: yq eval -P -i ".${{ env.CAMEL_CASE_REPO_NAME }}.image.version=\"${{ env.VERSION }}\"" ./helm/values.yaml - name: Update version environment variable @@ -231,9 +233,11 @@ jobs: run: npm i --package-lock-only --ignore-scripts - name: Update Chart.yaml version + if: ${{ inputs.include_chart }} run: yq eval -P -i ".appVersion=\"${{ env.VERSION }}\"" ./helm/Chart.yaml - name: Update values.yaml version + if: ${{ inputs.include_chart }} run: yq eval -P -i ".${{ env.CAMEL_CASE_REPO_NAME }}.image.version=\"${{ env.VERSION }}\"" ./helm/values.yaml - uses: stefanzweifel/git-auto-commit-action@v4 @@ -312,9 +316,11 @@ jobs: echo "VERSION=$NEW_VERSION" >> $GITHUB_ENV - name: Update Chart.yaml version + if: ${{ inputs.include_chart }} run: yq eval -P -i ".appVersion=\"${{ env.VERSION }}\"" ./helm/Chart.yaml - name: Update values.yaml version + if: ${{ inputs.include_chart }} run: yq eval -P -i ".${{ env.CAMEL_CASE_REPO_NAME }}.image.version=\"${{ env.VERSION }}\"" ./helm/values.yaml - name: Update version environment variable @@ -364,9 +370,11 @@ jobs: run: npm i --package-lock-only --ignore-scripts - name: Update Chart.yaml version + if: ${{ inputs.include_chart }} run: yq eval -P -i ".appVersion=\"${{ env.VERSION }}\"" ./helm/Chart.yaml - name: Update values.yaml version + if: ${{ inputs.include_chart }} run: yq eval -P -i ".${{ env.CAMEL_CASE_REPO_NAME }}.image.version=\"${{ env.VERSION }}\"" ./helm/values.yaml - uses: stefanzweifel/git-auto-commit-action@v4 @@ -445,13 +453,13 @@ jobs: echo "v$(semver -i patch $(sed 's/^v//' VERSION))" > VERSION echo "VERSION=$(cat VERSION)" >> $GITHUB_ENV - - name: Update Chart.yaml version - if: ${{ inputs.include_chart }} - run: yq eval -P -i ".appVersion=\"${{ env.VERSION }}\"" ./helm/Chart.yaml - - - name: Update values.yaml version - if: ${{ inputs.include_chart }} - run: yq eval -P -i ".${{ env.CAMEL_CASE_REPO_NAME }}.image.version=\"${{ env.VERSION }}\"" ./helm/values.yaml +## - name: Update Chart.yaml version +## if: ${{ inputs.include_chart }} +## run: yq eval -P -i ".appVersion=\"${{ env.VERSION }}\"" ./helm/Chart.yaml +## +## - name: Update values.yaml version +## if: ${{ inputs.include_chart }} +## run: yq eval -P -i ".${{ env.CAMEL_CASE_REPO_NAME }}.image.version=\"${{ env.VERSION }}\"" ./helm/values.yaml - name: Update version environment variable run: echo "VERSION=$(echo $VERSION | sed 's/\.[0-9]*$//')" >> $GITHUB_ENV @@ -495,13 +503,13 @@ jobs: echo "v$(semver -i minor $(cat VERSION | sed 's/^v//;s/-pre$//'))-pre" > VERSION echo "VERSION=$(cat VERSION)" >> $GITHUB_ENV - - name: Update Chart.yaml version - if: ${{ inputs.include_chart }} - run: yq eval -P -i ".appVersion=\"${{ env.VERSION }}\"" ./helm/Chart.yaml - - - name: Update values.yaml version - if: ${{ inputs.include_chart }} - run: yq eval -P -i ".${{ env.CAMEL_CASE_REPO_NAME }}.image.version=\"${{ env.VERSION }}\"" ./helm/values.yaml +## - name: Update Chart.yaml version +## if: ${{ inputs.include_chart }} +## run: yq eval -P -i ".appVersion=\"${{ env.VERSION }}\"" ./helm/Chart.yaml +## +## - name: Update values.yaml version +## if: ${{ inputs.include_chart }} +## run: yq eval -P -i ".${{ env.CAMEL_CASE_REPO_NAME }}.image.version=\"${{ env.VERSION }}\"" ./helm/values.yaml - uses: stefanzweifel/git-auto-commit-action@v4 with: @@ -540,6 +548,7 @@ jobs: token_secret_name: ${{ inputs.token_secret_name }} needs_docker: ${{ inputs.needs_docker }} build_command: ${{ inputs.build_command }} + include_chart: ${{ inputs.include_chart }} @@ -573,6 +582,7 @@ jobs: token_secret_name: ${{ inputs.token_secret_name }} needs_docker: ${{ inputs.needs_docker }} build_command: ${{ inputs.build_command }} + include_chart: ${{ inputs.include_chart }} deployReleaseCandidateGo: uses: ./.github/workflows/build-deploy-go.yml diff --git a/.github/workflows/deploy-dev-common.yml b/.github/workflows/deploy-dev-common.yml index 38f92c7..2896771 100644 --- a/.github/workflows/deploy-dev-common.yml +++ b/.github/workflows/deploy-dev-common.yml @@ -30,7 +30,7 @@ on: include_chart: required: false type: boolean - default: false + default: true needs_docker: required: false type: boolean @@ -140,6 +140,7 @@ jobs: gcp_project_id: ${{ inputs.gcp_project_id }} token_secret_name: ${{ inputs.token_secret_name }} build_command: ${{ inputs.build_command }} + include_chart: ${{ inputs.include_chart }} buildDeployDevJS: needs: detect-language @@ -168,6 +169,7 @@ jobs: needs_docker: ${{ inputs.needs_docker }} token_secret_name: ${{ inputs.token_secret_name }} build_command: ${{ inputs.build_command }} + include_chart: ${{ inputs.include_chart }} buildDeployDevGo: needs: detect-language @@ -191,7 +193,7 @@ jobs: skip_deploy: ${{ inputs.skip_deploy }} build_command: ${{ inputs.build_command }} needs_docker: ${{ inputs.needs_docker }} - include_chart: ${{ inputs.include_chart }} + include_chart: false rails: '[[ "$VERSION" =~ "pre" ]]' tag: false name_override: ${{ inputs.name_override }} diff --git a/.github/workflows/deploy-prod-common.yml b/.github/workflows/deploy-prod-common.yml index 1738036..388aca0 100644 --- a/.github/workflows/deploy-prod-common.yml +++ b/.github/workflows/deploy-prod-common.yml @@ -38,7 +38,7 @@ on: include_chart: required: false type: boolean - default: false + default: true name_override: required: false type: string @@ -168,9 +168,11 @@ jobs: echo "VERSION=$NEW_VERSION" >> $GITHUB_ENV - name: Update Chart.yaml version + if: ${{ inputs.include_chart }} run: yq eval -i ".appVersion=\"${{ env.VERSION }}\"" ./helm/Chart.yaml - name: Update values.yaml version + if: ${{ inputs.include_chart }} run: yq eval -i ".${{ env.CAMEL_CASE_REPO_NAME }}.image.version=\"${{ env.VERSION }}\"" ./helm/values.yaml - uses: stefanzweifel/git-auto-commit-action@v4 @@ -244,9 +246,11 @@ jobs: echo "VERSION=$NEW_VERSION" >> $GITHUB_ENV - name: Update Chart.yaml version + if: ${{ inputs.include_chart }} run: yq eval -i ".appVersion=\"${{ env.VERSION }}\"" ./helm/Chart.yaml - name: Update values.yaml version + if: ${{ inputs.include_chart }} run: yq eval -i ".${{ env.CAMEL_CASE_REPO_NAME }}.image.version=\"${{ env.VERSION }}\"" ./helm/values.yaml - uses: stefanzweifel/git-auto-commit-action@v4 @@ -316,13 +320,13 @@ jobs: echo "v$(semver -i patch $(sed 's/^v//' VERSION))" > VERSION echo "VERSION=$(cat VERSION)" >> $GITHUB_ENV - - name: Update Chart.yaml version - if: ${{ inputs.include_chart }} - run: yq eval -i ".appVersion=\"${{ env.VERSION }}\"" ./helm/Chart.yaml - - - name: Update values.yaml version - if: ${{ inputs.include_chart }} - run: yq eval -i ".${{ env.CAMEL_CASE_REPO_NAME }}.image.version=\"${{ env.VERSION }}\"" ./helm/values.yaml +## - name: Update Chart.yaml version +## if: ${{ inputs.include_chart }} +## run: yq eval -i ".appVersion=\"${{ env.VERSION }}\"" ./helm/Chart.yaml +## +## - name: Update values.yaml version +## if: ${{ inputs.include_chart }} +## run: yq eval -i ".${{ env.CAMEL_CASE_REPO_NAME }}.image.version=\"${{ env.VERSION }}\"" ./helm/values.yaml - uses: stefanzweifel/git-auto-commit-action@v4 with: @@ -358,6 +362,7 @@ jobs: token_secret_name: ${{ inputs.token_secret_name }} needs_docker: ${{ inputs.needs_docker }} build_command: ${{ inputs.build_command }} + include_chart: ${{ inputs.include_chart }} buildDeploySandboxTS: needs: [createProdTagTS] @@ -386,6 +391,7 @@ jobs: token_secret_name: ${{ inputs.token_secret_name }} needs_docker: ${{ inputs.needs_docker }} build_command: ${{ inputs.build_command }} + include_chart: ${{ inputs.include_chart }} buildDeployProdGo: needs: [createProdTagGo] @@ -410,7 +416,7 @@ jobs: skip_deploy: ${{ inputs.skip_deploy }} build_command: ${{ inputs.build_command }} needs_docker: ${{ inputs.needs_docker }} - include_chart: ${{ inputs.include_chart }} + include_chart: false name_override: ${{ inputs.name_override }} gcp_project_id: ${{ inputs.gcp_project_id }} token_secret_name: ${{ inputs.token_secret_name }} diff --git a/.github/workflows/deploy-sandbox-common.yml b/.github/workflows/deploy-sandbox-common.yml index c170578..e398364 100644 --- a/.github/workflows/deploy-sandbox-common.yml +++ b/.github/workflows/deploy-sandbox-common.yml @@ -38,7 +38,7 @@ on: include_chart: required: false type: boolean - default: false + default: true update_version: required: false type: boolean @@ -131,6 +131,7 @@ jobs: token_secret_name: ${{ inputs.token_secret_name }} needs_docker: ${{ inputs.needs_docker }} build_command: ${{ inputs.build_command }} + include_chart: ${{ inputs.include_chart }} buildDeploySandboxTS: needs: detect-language @@ -160,6 +161,7 @@ jobs: token_secret_name: ${{ inputs.token_secret_name }} needs_docker: ${{ inputs.needs_docker }} build_command: ${{ inputs.build_command }} + include_chart: ${{ inputs.include_chart }} buildDeploySandboxGo: needs: detect-language @@ -185,7 +187,7 @@ jobs: skip_deploy: ${{ inputs.skip_deploy }} build_command: ${{ inputs.build_command }} needs_docker: ${{ inputs.needs_docker }} - include_chart: ${{ inputs.include_chart }} + include_chart: false name_override: ${{ inputs.name_override }} gcp_project_id: ${{ inputs.gcp_project_id }} token_secret_name: ${{ inputs.token_secret_name }}