From 3aabd83258bd4feed720ce1988629a2cbb9d4d4e Mon Sep 17 00:00:00 2001 From: Niv Greenstein <88280771+NivGreenstein@users.noreply.github.com> Date: Wed, 14 May 2025 10:38:19 +0300 Subject: [PATCH 1/4] refactor: update build and push workflow --- .github/workflows/build_and_push.yaml | 36 ++++++++++++++++++--------- 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build_and_push.yaml b/.github/workflows/build_and_push.yaml index 9f46405..405cc32 100644 --- a/.github/workflows/build_and_push.yaml +++ b/.github/workflows/build_and_push.yaml @@ -1,19 +1,31 @@ -name: Build-and-push +name: Build and push artifacts on: - create: + push: tags: + - 'v*' -jobs: + workflow_dispatch: + inputs: + version: + required: true + type: string +env: + HELM_EXPERIMENTAL_OCI: 1 - build_and_test: - runs-on: ubuntu-latest +permissions: + contents: write + pull-requests: write +jobs: + build_and_push_docker: + uses: MapColonies/shared-workflows/.github/workflows/build-and-push-docker.yaml@v4 + secrets: inherit + with: + scope: vector - steps: - - name: Azure Pipelines Action - uses: Azure/pipelines@v1 - with: - azure-devops-project-url: https://dev.azure.com/Libot-Mipui-Org/planet-dumper - azure-pipeline-name: 'build-and-push-to-ACR' - azure-devops-token: ${{ secrets.AZURE_DEVOPS_TOKEN }} + build_and_push_helm: + uses: MapColonies/shared-workflows/.github/workflows/build-and-push-helm.yaml@v4 + secrets: inherit + with: + scope: vector From f2238360cad7a90e1cdfbc49eee488bafd421c57 Mon Sep 17 00:00:00 2001 From: Niv Greenstein <88280771+NivGreenstein@users.noreply.github.com> Date: Wed, 14 May 2025 10:40:34 +0300 Subject: [PATCH 2/4] ci: added release_please action --- .github/workflows/release_please.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/release_please.yaml diff --git a/.github/workflows/release_please.yaml b/.github/workflows/release_please.yaml new file mode 100644 index 0000000..17acb4d --- /dev/null +++ b/.github/workflows/release_please.yaml @@ -0,0 +1,21 @@ +on: + push: + branches: + - master + +permissions: + contents: write + pull-requests: write + +name: release_please + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: googleapis/release-please-action@v4 + with: + # this assumes that you have created a personal access token + # (PAT) and configured it as a GitHub action secret named + # `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important). + token: ${{ secrets.GH_PAT }} From 75f223f3a59c2fb74a7938738160cc03bc5f38f6 Mon Sep 17 00:00:00 2001 From: Niv Greenstein <88280771+NivGreenstein@users.noreply.github.com> Date: Wed, 14 May 2025 10:41:34 +0300 Subject: [PATCH 3/4] chore: added release please manifest --- .release-please-manifest.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 .release-please-manifest.json diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..16502c3 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1 @@ +{".":"4.0.0"} From abbf71324332f72e701321f63c66c785aaf0ee2c Mon Sep 17 00:00:00 2001 From: Niv Greenstein <88280771+NivGreenstein@users.noreply.github.com> Date: Wed, 14 May 2025 10:43:13 +0300 Subject: [PATCH 4/4] chore: added release please config --- release-please-config.json | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 release-please-config.json diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..d6fd2da --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,21 @@ +{ + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", + "release-type": "node", + "include-component-in-tag": false, + "packages": { + ".": { + "extra-files": [ + { + "type": "yaml", + "path": "helm/Chart.yaml", + "jsonpath": "$.version" + }, + { + "type": "yaml", + "path": "helm/Chart.yaml", + "jsonpath": "$.appVersion" + } + ] + } + } +}