From 935eecff6a67eb65500e2f644604698783f2e55d Mon Sep 17 00:00:00 2001 From: Veeti Haapsamo Date: Wed, 28 Sep 2022 11:53:40 +0300 Subject: [PATCH] chore: rename `master` to `main` --- .circleci/config.yml | 27 +++--- .github/PULL_REQUEST_TEMPLATE.md | 2 +- .github/workflows/scorecards.yml | 12 +-- .github/workflows/update-homebrew-action.yml | 61 +++++++------ README.md | 10 +-- RELEASE_PROCESS.md | 86 ++++++++++--------- core/src/docs/joi-schema.ts | 4 +- core/src/plugins/kubernetes/local-mode.ts | 2 +- core/src/util/fs.ts | 2 +- core/src/vcs/git.ts | 2 +- .../module-a/garden.yml | 2 +- .../module-b/garden.yml | 2 +- .../module-c/garden.yml | 4 +- .../garden.yml | 6 +- core/test/helpers.ts | 4 +- .../integ/src/plugins/hadolint/hadolint.ts | 2 +- .../kubernetes/kubernetes-module/handlers.ts | 2 +- .../plugins/kubernetes/volume/configmap.ts | 2 +- .../volume/persistentvolumeclaim.ts | 2 +- .../unit/src/commands/create/create-module.ts | 2 +- .../src/commands/create/create-project.ts | 2 +- .../test/unit/src/commands/get/get-outputs.ts | 2 +- core/test/unit/src/commands/get/get-status.ts | 2 +- core/test/unit/src/commands/logs.ts | 2 +- core/test/unit/src/commands/migrate.ts | 2 +- core/test/unit/src/commands/run/workflow.ts | 2 +- core/test/unit/src/commands/tools.ts | 2 +- .../unit/src/commands/util/fetch-tools.ts | 2 +- core/test/unit/src/garden.ts | 14 +-- core/test/unit/src/outputs.ts | 2 +- core/test/unit/src/tasks/deploy.ts | 2 +- .../test/unit/src/tasks/get-service-status.ts | 2 +- core/test/unit/src/tasks/resolve-provider.ts | 2 +- core/test/unit/src/tasks/task.ts | 2 +- core/test/unit/src/vcs/git.ts | 16 ++-- docs/advanced/using-remote-sources.md | 8 +- docs/getting-started/1-installation.md | 22 ++--- docs/guides/using-garden-in-ci.md | 28 +++--- docs/misc/faq.md | 11 ++- docs/reference/module-template-config.md | 6 +- docs/reference/module-types/configmap.md | 12 +-- docs/reference/module-types/conftest.md | 12 +-- docs/reference/module-types/container.md | 28 +++--- docs/reference/module-types/exec.md | 12 +-- docs/reference/module-types/hadolint.md | 12 +-- docs/reference/module-types/helm.md | 28 +++--- docs/reference/module-types/jib-container.md | 28 +++--- docs/reference/module-types/kubernetes.md | 34 ++++---- .../reference/module-types/maven-container.md | 28 +++--- docs/reference/module-types/openfaas.md | 12 +-- .../module-types/persistentvolumeclaim.md | 12 +-- docs/reference/module-types/pulumi.md | 18 ++-- docs/reference/module-types/templated.md | 12 +-- docs/reference/module-types/terraform.md | 18 ++-- docs/reference/project-config.md | 12 +-- docs/reference/providers/kubernetes.md | 18 ++-- docs/reference/providers/local-kubernetes.md | 18 ++-- .../template-strings/custom-commands.md | 24 +++--- .../template-strings/environments.md | 12 +-- docs/reference/template-strings/modules.md | 54 ++++++------ .../template-strings/project-outputs.md | 48 +++++------ docs/reference/template-strings/providers.md | 24 +++--- .../template-strings/remote-sources.md | 12 +-- docs/reference/template-strings/workflows.md | 18 ++-- examples/disabled-configs/README.md | 2 +- examples/local-exec/backend/go.mod | 2 +- examples/local-service/README.md | 4 +- examples/remote-sources/garden.yml | 6 +- examples/spring-boot-hot-reload/README.md | 5 +- scripts/check-docs.sh | 4 +- scripts/release.ts | 2 +- support/install.ps1 | 2 +- 72 files changed, 450 insertions(+), 450 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 7ab7ddf8b8..9152475574 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -16,7 +16,7 @@ orbs: GARDEN_LOGGER_TYPE: basic shared-machine-config: &shared-machine-config - image: 'ubuntu-2004:202010-01' + image: "ubuntu-2004:202010-01" docker_layer_caching: true remote-docker: &remote-docker @@ -43,11 +43,11 @@ orbs: attach_workspace: at: ./ - # Only run jobs on master - only-master: &only-master + # Only run jobs on main + only-main: &only-main filters: branches: - only: master + only: main tags: ignore: /.*/ @@ -81,8 +81,8 @@ commands: steps: - restore_cache: keys: - - yarn-v4-<>-{{ checksum "yarn.lock" }} - - yarn-v4-<> + - yarn-v4-<>-{{ checksum "yarn.lock" }} + - yarn-v4-<> - run: yarn @@ -100,7 +100,6 @@ commands: git config --global user.name "Garden CI" git config --global user.email "admin@garden.io" - install_kubectl: description: Install kubectl steps: @@ -489,8 +488,8 @@ jobs: - deploy: name: Release docker images command: | - # Switches between git tag and master for releases - TAG=${CIRCLE_TAG:-master} + # Switches between git tag and main for releases + TAG=${CIRCLE_TAG:-main} # Push the container ./scripts/push-containers.sh $TAG # Push again with latest tag for non-pre-release tags @@ -588,7 +587,7 @@ jobs: # Restore Maven cache - restore_cache: keys: - - m2-v1 + - m2-v1 # Run tests - run: name: Plugin tests @@ -1024,18 +1023,18 @@ workflows: requires: [build] kindNodeImage: kindest/node:v1.21.2 - ### MASTER ONLY ### + ### MAIN ONLY ### # TODO: Re-enable this if we can figure out a way to not spam users who have starred the repo. # - build-dist-edge: - # <<: *only-master + # <<: *only-main # requires: [build] # - release-service-docker: - # <<: *only-master + # <<: *only-main # context: docker # requires: [build-dist-edge] # - release-service-dist-edge: - # <<: *only-master + # <<: *only-main # requires: [build-dist-edge] tags: diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 654d369c08..a5be697cff 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,6 +1,6 @@