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 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 }} 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"} 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" + } + ] + } + } +}