From a7d5ffaa0b66ec61fb8feac763bbdb602d6e2673 Mon Sep 17 00:00:00 2001 From: cleverhu Date: Mon, 12 Sep 2022 02:58:20 +0800 Subject: [PATCH] Add .circleci/config.yml --- .circleci/config.yml | 51 +++++++++++++++----------------------------- 1 file changed, 17 insertions(+), 34 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 36e137bfd..6554e1f4e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,43 +1,26 @@ ---- -version: 2 +# Use the latest 2.1 version of CircleCI pipeline process engine. +# See: https://circleci.com/docs/2.0/configuration-reference +version: 2.1 +# Define a job to be invoked later in a workflow. +# See: https://circleci.com/docs/2.0/configuration-reference/#jobs jobs: - build: - working_directory: ~/helm.sh/helm + say-hello: + # Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub. + # See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor docker: - - image: cimg/go:1.18 - - auth: - username: $DOCKER_USER - password: $DOCKER_PASS - - environment: - GOCACHE: "/tmp/go/cache" - GOLANGCI_LINT_VERSION: "1.46.2" - + - image: cimg/base:stable + # Add steps to the job + # See: https://circleci.com/docs/2.0/configuration-reference/#steps steps: - checkout - run: - name: install test dependencies - command: .circleci/bootstrap.sh - - run: - name: test style - command: make test-style - - run: - name: test - command: make test-coverage - - run: - name: test build - command: make - - deploy: - name: deploy - command: .circleci/deploy.sh + name: "Say hello" + command: "echo Hello, World!" +# Invoke jobs via workflows +# See: https://circleci.com/docs/2.0/configuration-reference/#workflows workflows: - version: 2 - build: + say-hello-workflow: jobs: - - build: - filters: - tags: - only: /.*/ + - say-hello