Add .circleci/config.yml

pull/11325/head
cleverhu 3 years ago
parent bed23120b0
commit a7d5ffaa0b

@ -1,43 +1,26 @@
--- # Use the latest 2.1 version of CircleCI pipeline process engine.
version: 2 # 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: jobs:
build: say-hello:
working_directory: ~/helm.sh/helm # 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: docker:
- image: cimg/go:1.18 - image: cimg/base:stable
# Add steps to the job
auth: # See: https://circleci.com/docs/2.0/configuration-reference/#steps
username: $DOCKER_USER
password: $DOCKER_PASS
environment:
GOCACHE: "/tmp/go/cache"
GOLANGCI_LINT_VERSION: "1.46.2"
steps: steps:
- checkout - checkout
- run: - run:
name: install test dependencies name: "Say hello"
command: .circleci/bootstrap.sh command: "echo Hello, World!"
- 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
# Invoke jobs via workflows
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows
workflows: workflows:
version: 2 say-hello-workflow:
build:
jobs: jobs:
- build: - say-hello
filters:
tags:
only: /.*/

Loading…
Cancel
Save