From 3fdb6bd80d0003a7844bb4ec7e23cbb9a089c748 Mon Sep 17 00:00:00 2001 From: qwerty287 Date: Sat, 30 Dec 2023 11:03:47 +0100 Subject: [PATCH 1/3] Remove old files --- .gitpod.yml | 116 ------- .prettierignore | 1 + .prettierrc => .prettierrc.json | 0 docs/.prettierrc.js | 8 - pipeline/samples/sample_1/.env | 16 - pipeline/samples/sample_1/README.md | 13 - pipeline/samples/sample_1/pipeline.json | 108 ------- pipeline/samples/sample_1/pipeline.yml | 16 - pipeline/samples/sample_10_windows/.env | 16 - pipeline/samples/sample_10_windows/README.md | 13 - .../samples/sample_10_windows/pipeline.json | 125 -------- .../samples/sample_10_windows/pipeline.yml | 18 -- pipeline/samples/sample_2/.env | 16 - pipeline/samples/sample_2/pipeline.json | 153 ---------- pipeline/samples/sample_2/pipeline.yml | 20 -- pipeline/samples/sample_3/.env | 16 - pipeline/samples/sample_3/pipeline.json | 156 ---------- pipeline/samples/sample_3/pipeline.yml | 19 -- pipeline/samples/sample_4/.env | 16 - pipeline/samples/sample_4/pipeline.json | 156 ---------- pipeline/samples/sample_4/pipeline.yml | 21 -- pipeline/samples/sample_5/.env | 16 - pipeline/samples/sample_5/pipeline.json | 288 ------------------ pipeline/samples/sample_5/pipeline.yml | 54 ---- pipeline/samples/sample_6/.env | 24 -- pipeline/samples/sample_6/pipeline.json | 187 ------------ pipeline/samples/sample_6/pipeline.yml | 22 -- pipeline/samples/sample_7_redis/pipeline.json | 119 -------- pipeline/samples/sample_7_redis/pipeline.yml | 21 -- .../samples/sample_8_network_mode/README.md | 20 -- .../sample_8_network_mode/pipeline.json | 88 ------ .../sample_8_network_mode/pipeline.yml | 17 -- .../samples/sample_8_postgres/pipeline.yml | 16 - pipeline/samples/sample_9_cache/.env | 18 -- pipeline/samples/sample_9_cache/pipeline.json | 237 -------------- pipeline/samples/sample_9_cache/pipeline.yml | 9 - 36 files changed, 1 insertion(+), 2158 deletions(-) delete mode 100644 .gitpod.yml rename .prettierrc => .prettierrc.json (100%) delete mode 100644 docs/.prettierrc.js delete mode 100644 pipeline/samples/sample_1/.env delete mode 100644 pipeline/samples/sample_1/README.md delete mode 100644 pipeline/samples/sample_1/pipeline.json delete mode 100644 pipeline/samples/sample_1/pipeline.yml delete mode 100644 pipeline/samples/sample_10_windows/.env delete mode 100644 pipeline/samples/sample_10_windows/README.md delete mode 100644 pipeline/samples/sample_10_windows/pipeline.json delete mode 100644 pipeline/samples/sample_10_windows/pipeline.yml delete mode 100644 pipeline/samples/sample_2/.env delete mode 100644 pipeline/samples/sample_2/pipeline.json delete mode 100644 pipeline/samples/sample_2/pipeline.yml delete mode 100644 pipeline/samples/sample_3/.env delete mode 100644 pipeline/samples/sample_3/pipeline.json delete mode 100644 pipeline/samples/sample_3/pipeline.yml delete mode 100644 pipeline/samples/sample_4/.env delete mode 100644 pipeline/samples/sample_4/pipeline.json delete mode 100644 pipeline/samples/sample_4/pipeline.yml delete mode 100644 pipeline/samples/sample_5/.env delete mode 100644 pipeline/samples/sample_5/pipeline.json delete mode 100644 pipeline/samples/sample_5/pipeline.yml delete mode 100644 pipeline/samples/sample_6/.env delete mode 100644 pipeline/samples/sample_6/pipeline.json delete mode 100644 pipeline/samples/sample_6/pipeline.yml delete mode 100644 pipeline/samples/sample_7_redis/pipeline.json delete mode 100644 pipeline/samples/sample_7_redis/pipeline.yml delete mode 100644 pipeline/samples/sample_8_network_mode/README.md delete mode 100644 pipeline/samples/sample_8_network_mode/pipeline.json delete mode 100644 pipeline/samples/sample_8_network_mode/pipeline.yml delete mode 100644 pipeline/samples/sample_8_postgres/pipeline.yml delete mode 100644 pipeline/samples/sample_9_cache/.env delete mode 100644 pipeline/samples/sample_9_cache/pipeline.json delete mode 100644 pipeline/samples/sample_9_cache/pipeline.yml diff --git a/.gitpod.yml b/.gitpod.yml deleted file mode 100644 index 4bbeb2c610..0000000000 --- a/.gitpod.yml +++ /dev/null @@ -1,116 +0,0 @@ -tasks: - - name: Server - env: - WOODPECKER_OPEN: true - WOODPECKER_ADMIN: woodpecker - WOODPECKER_HOST: http://host.docker.internal:8000 - WOODPECKER_SECRET: '1234' - WOODPECKER_GITEA: true - WOODPECKER_DEV_WWW_PROXY: http://localhost:8010 - WOODPECKER_BACKEND_DOCKER_NETWORK: ci_default - init: | - GO_VERSION=1.21.5 - rm -rf ~/go - curl -fsSL https://dl.google.com/go/go$GO_VERSION.linux-amd64.tar.gz | tar xzs -C ~/ - go mod tidy - mkdir -p web/dist - touch web/dist/index.html - make build-server - command: | - grep "WOODPECKER_GITEA_URL=" .env \ - && sed "s,^WOODPECKER_GITEA_URL=.*,WOODPECKER_GITEA_URL=$(gp url 3000)," .env \ - || echo WOODPECKER_GITEA_URL=$(gp url 3000) >> .env - grep "WOODPECKER_DEV_OAUTH_HOST=" .env \ - && sed "s,^WOODPECKER_DEV_OAUTH_HOST=.*,WOODPECKER_DEV_OAUTH_HOST=$(gp url 8000)," .env \ - || echo WOODPECKER_DEV_OAUTH_HOST=$(gp url 8000) >> .env - gp sync-await gitea - gp sync-done woodpecker-server - go run go.woodpecker-ci.org/woodpecker/v2/cmd/server - - name: Agent - env: - WOODPECKER_SERVER: localhost:9000 - WOODPECKER_SECRET: '1234' - WOODPECKER_MAX_WORKFLOWS: 1 - WOODPECKER_HEALTHCHECK: false - command: | - gp sync-await woodpecker-server - go run go.woodpecker-ci.org/woodpecker/v2/cmd/agent - - name: Gitea - command: | - export DOCKER_COMPOSE_CMD="docker-compose -f docker-compose.gitpod.yml -p woodpecker" - export GITEA_CLI_CMD="$DOCKER_COMPOSE_CMD exec -u git gitea gitea" - $DOCKER_COMPOSE_CMD up -d - until curl --output /dev/null --silent --head --fail http://localhost:3000; do printf '.'; sleep 1; done - $GITEA_CLI_CMD admin user create --username woodpecker --password password --email woodpecker@localhost --admin - export GITEA_TOKEN=$($GITEA_CLI_CMD admin user generate-access-token -u woodpecker --scopes repo,write:application --raw) - GITEA_OAUTH_APP=$(curl -X 'POST' 'http://localhost:3000/api/v1/user/applications/oauth2' \ - -H 'accept: application/json' -H 'Content-Type: application/json' -H "Authorization: token ${GITEA_TOKEN}" \ - -d "{ \"name\": \"Woodpecker CI\", \"confidential_client\": true, \"redirect_uris\": [ \"https://8000-${GITPOD_WORKSPACE_ID}.${GITPOD_WORKSPACE_CLUSTER_HOST}/authorize\" ] }") - grep "WOODPECKER_GITEA_CLIENT=" .env \ - && sed "s,^WOODPECKER_GITEA_CLIENT=.*,WOODPECKER_GITEA_CLIENT=$(echo $GITEA_OAUTH_APP | jq -r .client_id)," .env \ - || echo WOODPECKER_GITEA_CLIENT=$(echo $GITEA_OAUTH_APP | jq -r .client_id) >> .env - grep "WOODPECKER_GITEA_SECRET=" .env \ - && sed "s,^WOODPECKER_GITEA_SECRET=.*,WOODPECKER_GITEA_SECRET=$(echo $GITEA_OAUTH_APP | jq -r .client_secret)," .env \ - || echo WOODPECKER_GITEA_SECRET=$(echo $GITEA_OAUTH_APP | jq -r .client_secret) >> .env - curl -X 'POST' \ - 'http://localhost:3000/api/v1/user/repos' \ - -H 'accept: application/json' \ - -H 'Content-Type: application/json' \ - -H "Authorization: token ${GITEA_TOKEN}" \ - -d '{ "auto_init": false, "name": "woodpecker-test", "private": true, "template": false, "trust_model": "default" }' - cd contrib/woodpecker-test-repo - git init - git checkout -b main - git remote add origin http://woodpecker:${GITEA_TOKEN}@localhost:3000/woodpecker/woodpecker-test.git - git add . - git commit -m ":tada: Initial commit" - git push -u origin main - cd ../.. - gp sync-done gitea - $DOCKER_COMPOSE_CMD logs -f - - name: App - before: | - cd web/ - init: | - pnpm install - command: | - pnpm start - - name: Docs - before: | - cd docs/ - init: | - pnpm install - pnpm build:woodpecker-plugins - command: | - pnpm start --port 4000 - -ports: - - port: 3000 - name: Gitea - onOpen: ignore - visibility: public # TODO: https://github.com/woodpecker-ci/woodpecker/issues/856 - - port: 8000 - name: Woodpecker - onOpen: notify - visibility: public # TODO: https://github.com/woodpecker-ci/woodpecker/issues/856 - - port: 9000 - name: Woodpecker GRPC - onOpen: ignore - - port: 8010 - description: Do not use! Access woodpecker on port 8000 - onOpen: ignore - - port: 4000 - name: Docs - onOpen: notify - -vscode: - extensions: - - 'golang.go' - - 'EditorConfig.EditorConfig' - - 'dbaeumer.vscode-eslint' - - 'esbenp.prettier-vscode' - - 'voorjaar.windicss-intellisense' - - 'Vue.volar' - - 'redhat.vscode-yaml' - - 'davidanson.vscode-markdownlint' - - 'streetsidesoftware.code-spell-checker' diff --git a/.prettierignore b/.prettierignore index 5f0f1c8b85..beaa85f062 100644 --- a/.prettierignore +++ b/.prettierignore @@ -5,3 +5,4 @@ docs/.docusaurus/ dist/ web/components.d.ts CHANGELOG.md +web/src/assets/dayjsLocales/ diff --git a/.prettierrc b/.prettierrc.json similarity index 100% rename from .prettierrc rename to .prettierrc.json diff --git a/docs/.prettierrc.js b/docs/.prettierrc.js deleted file mode 100644 index b651096fd4..0000000000 --- a/docs/.prettierrc.js +++ /dev/null @@ -1,8 +0,0 @@ -module.exports = { - semi: true, - trailingComma: 'all', - singleQuote: true, - printWidth: 120, - tabWidth: 2, - endOfLine: 'lf', -}; diff --git a/pipeline/samples/sample_1/.env b/pipeline/samples/sample_1/.env deleted file mode 100644 index 2a6815f920..0000000000 --- a/pipeline/samples/sample_1/.env +++ /dev/null @@ -1,16 +0,0 @@ -CI_COMMIT_AUTHOR=bradrydzewski -CI_COMMIT_BRANCH=master -CI_COMMIT_MESSAGE="added a few more test cases for escaping behavior" -CI_COMMIT_REF=refs/heads/master -CI_COMMIT_REFSPEC= -CI_COMMIT_SHA=d0876d3176965f9552a611cbd56e24a9264355e6 -CI_PIPELINE_CREATED=1486119586 -CI_PIPELINE_EVENT=push -CI_PIPELINE_NUMBER=6 -CI_PIPELINE_STARTED=1486119585 -CI_PIPELINE_URL= -CI_REPO=drone/envsubst -CI_REPO_CLONE_URL=https://github.com/drone/envsubst.git -CI_REPO_NAME=drone/envsubst -CI_REPO_PRIVATE=false -CI_REPO_URL=https://github.com/drone/envsubst diff --git a/pipeline/samples/sample_1/README.md b/pipeline/samples/sample_1/README.md deleted file mode 100644 index 0cf3536c63..0000000000 --- a/pipeline/samples/sample_1/README.md +++ /dev/null @@ -1,13 +0,0 @@ -# Example - -Compile the yaml to the intermediate representation: - -```sh -pipec compile -``` - -Execute the intermediate representation: - -```sh -pipec exec -``` diff --git a/pipeline/samples/sample_1/pipeline.json b/pipeline/samples/sample_1/pipeline.json deleted file mode 100644 index 1d0c9ed3e4..0000000000 --- a/pipeline/samples/sample_1/pipeline.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "pipeline": [ - { - "name": "pipeline_clone_0", - "alias": "git", - "steps": [ - { - "name": "pipeline_clone_0", - "alias": "git", - "image": "woodpeckerci/plugin-git:latest", - "working_dir": "/go/src/github.com/drone/envsubst", - "environment": { - "CI": "pipec", - "CI_PIPELINE_CREATED": "1486119586", - "CI_PIPELINE_EVENT": "push", - "CI_PIPELINE_NUMBER": "6", - "CI_PIPELINE_STARTED": "1486119585", - "CI_COMMIT_AUTHOR": "bradrydzewski", - "CI_COMMIT_BRANCH": "main", - "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", - "CI_COMMIT_REF": "refs/heads/main", - "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", - "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", - "CI_REPO": "drone/envsubst", - "CI_REPO_URL": "https://github.com/drone/envsubst", - "CI_REPO_NAME": "drone/envsubst", - "CI_REPO_CLONE_URL": "https://github.com/drone/envsubst.git", - "CI_SYSTEM": "pipec", - "CI_SYSTEM_PLATFORM": "linux/amd64", - "CI_SYSTEM_URL": "https://github.com/cncd/pipec", - "CI_SYSTEM_NAME": "pipec", - "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", - "PLUGIN_DEPTH": "50" - }, - "volumes": ["pipeline_default:/go"], - "networks": [ - { - "name": "pipeline_default", - "aliases": null - } - ], - "on_success": true, - "auth_config": {} - } - ] - }, - { - "name": "pipeline_stage_0", - "alias": "build", - "steps": [ - { - "name": "pipeline_step_0", - "alias": "build", - "image": "golang:1.7", - "working_dir": "/go/src/github.com/drone/envsubst", - "environment": { - "CI": "pipec", - "CI_PIPELINE_CREATED": "1486119586", - "CI_PIPELINE_EVENT": "push", - "CI_PIPELINE_NUMBER": "6", - "CI_PIPELINE_STARTED": "1486119585", - "CI_COMMIT_AUTHOR": "bradrydzewski", - "CI_COMMIT_BRANCH": "main", - "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", - "CI_COMMIT_REF": "refs/heads/main", - "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", - "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", - "CI_REPO": "drone/envsubst", - "CI_REPO_URL": "https://github.com/drone/envsubst", - "CI_REPO_NAME": "drone/envsubst", - "CI_REPO_CLONE_URL": "https://github.com/drone/envsubst.git", - "CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAoKZWNobyArICJnbyBnZXQgLXQgLi8uLi4iCmdvIGdldCAtdCAuLy4uLgoKZWNobyArICJnbyBidWlsZCIKZ28gYnVpbGQKCmVjaG8gKyAiZ28gdGVzdCAtdiIKZ28gdGVzdCAtdgoK", - "CI_SYSTEM": "pipec", - "CI_SYSTEM_PLATFORM": "linux/amd64", - "CI_SYSTEM_URL": "https://github.com/cncd/pipec", - "CI_SYSTEM_NAME": "pipec", - "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", - "HOME": "/root", - "SHELL": "/bin/sh" - }, - "entrypoint": ["/bin/sh", "-c"], - "command": ["echo $CI_SCRIPT | base64 -d | /bin/sh -e"], - "volumes": ["pipeline_default:/go"], - "networks": [ - { - "name": "pipeline_default", - "aliases": null - } - ], - "on_success": true, - "auth_config": {} - } - ] - } - ], - "networks": [ - { - "name": "pipeline_default", - "driver": "bridge" - } - ], - "volumes": [ - { - "name": "pipeline_default", - "driver": "local" - } - ] -} diff --git a/pipeline/samples/sample_1/pipeline.yml b/pipeline/samples/sample_1/pipeline.yml deleted file mode 100644 index c628e92e78..0000000000 --- a/pipeline/samples/sample_1/pipeline.yml +++ /dev/null @@ -1,16 +0,0 @@ -workspace: - base: /go - path: src/github.com/drone/envsubst - -clone: - git: - image: woodpeckerci/plugin-git - depth: 50 - -steps: - build: - image: golang:1.7 - commands: - - go get -t ./... - - go build - - go test -v diff --git a/pipeline/samples/sample_10_windows/.env b/pipeline/samples/sample_10_windows/.env deleted file mode 100644 index 2a6815f920..0000000000 --- a/pipeline/samples/sample_10_windows/.env +++ /dev/null @@ -1,16 +0,0 @@ -CI_COMMIT_AUTHOR=bradrydzewski -CI_COMMIT_BRANCH=master -CI_COMMIT_MESSAGE="added a few more test cases for escaping behavior" -CI_COMMIT_REF=refs/heads/master -CI_COMMIT_REFSPEC= -CI_COMMIT_SHA=d0876d3176965f9552a611cbd56e24a9264355e6 -CI_PIPELINE_CREATED=1486119586 -CI_PIPELINE_EVENT=push -CI_PIPELINE_NUMBER=6 -CI_PIPELINE_STARTED=1486119585 -CI_PIPELINE_URL= -CI_REPO=drone/envsubst -CI_REPO_CLONE_URL=https://github.com/drone/envsubst.git -CI_REPO_NAME=drone/envsubst -CI_REPO_PRIVATE=false -CI_REPO_URL=https://github.com/drone/envsubst diff --git a/pipeline/samples/sample_10_windows/README.md b/pipeline/samples/sample_10_windows/README.md deleted file mode 100644 index 7e5e872d8a..0000000000 --- a/pipeline/samples/sample_10_windows/README.md +++ /dev/null @@ -1,13 +0,0 @@ -# Example - -Compile the yaml to the intermediate representation: - -```sh -pipec compile --system-arch windows/amd64 -``` - -Execute the intermediate representation: - -```sh -pipec exec -``` diff --git a/pipeline/samples/sample_10_windows/pipeline.json b/pipeline/samples/sample_10_windows/pipeline.json deleted file mode 100644 index 432d02c70c..0000000000 --- a/pipeline/samples/sample_10_windows/pipeline.json +++ /dev/null @@ -1,125 +0,0 @@ -{ - "pipeline": [ - { - "name": "pipeline_clone_0", - "alias": "git", - "steps": [ - { - "name": "pipeline_clone_0", - "alias": "git", - "image": "woodpeckerci/plugin-git:windows", - "working_dir": "c:\\gopath/src\\github.com\\drone\\envsubst", - "environment": { - "CI": "drone", - "CI_PIPELINE_CREATED": "1486119586", - "CI_PIPELINE_EVENT": "push", - "CI_PIPELINE_NUMBER": "6", - "CI_PIPELINE_STARTED": "1486119585", - "CI_COMMIT_AUTHOR": "bradrydzewski", - "CI_COMMIT_BRANCH": "main", - "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", - "CI_COMMIT_REF": "refs/heads/main", - "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", - "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", - "CI_REPO": "drone/envsubst", - "CI_REPO_URL": "https://github.com/drone/envsubst", - "CI_REPO_NAME": "drone/envsubst", - "CI_REPO_CLONE_URL": "https://github.com/drone/envsubst.git", - "CI_SYSTEM": "pipec", - "CI_SYSTEM_PLATFORM": "windows/amd64", - "CI_SYSTEM_URL": "https://github.com/cncd/pipec", - "CI_SYSTEM_NAME": "pipec", - "CI_WORKSPACE": "c:\\gopath/src\\github.com\\drone\\envsubst", - "CI_ARCH": "windows/amd64", - "CI_BRANCH": "main", - "CI_PIPELINE_URL": "https://github.com/cncd/pipec/drone/envsubst/6", - "CI_COMMIT": "d0876d3176965f9552a611cbd56e24a9264355e6", - "CI_STEP_STARTED": "1486119585", - "CI_REPO_OWNER": "drone", - "CI_REPO_SCM": "git", - "PLUGIN_DEPTH": "50" - }, - "volumes": ["pipeline_default:c:\\gopath"], - "networks": [ - { - "name": "pipeline_default", - "aliases": ["git"] - } - ], - "on_success": true, - "auth_config": {} - } - ] - }, - { - "name": "pipeline_stage_0", - "alias": "build", - "steps": [ - { - "name": "pipeline_step_0", - "alias": "build", - "image": "golang:1.10.1-nanoserver-sac2016", - "working_dir": "c:\\gopath/src\\github.com\\drone\\envsubst", - "environment": { - "CI": "drone", - "CI_PIPELINE_CREATED": "1486119586", - "CI_PIPELINE_EVENT": "push", - "CI_PIPELINE_NUMBER": "6", - "CI_PIPELINE_STARTED": "1486119585", - "CI_COMMIT_AUTHOR": "bradrydzewski", - "CI_COMMIT_BRANCH": "main", - "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", - "CI_COMMIT_REF": "refs/heads/main", - "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", - "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", - "CI_REPO": "drone/envsubst", - "CI_REPO_URL": "https://github.com/drone/envsubst", - "CI_REPO_NAME": "drone/envsubst", - "CI_REPO_CLONE_URL": "https://github.com/drone/envsubst.git", - "CI_SCRIPT": "CiRFcnJvckFjdGlvblByZWZlcmVuY2UgPSAnU3RvcCc7CiZjbWQgL2MgIm1rZGlyIGM6XHJvb3QiOwppZiAoJEVudjpDSV9ORVRSQ19NQUNISU5FKSB7CiRuZXRyYz1bc3RyaW5nXTo6Rm9ybWF0KCJ7MH1cX25ldHJjIiwkRW52OkhPTUUpOwoibWFjaGluZSAkRW52OkNJX05FVFJDX01BQ0hJTkUiID4+ICRuZXRyYzsKImxvZ2luICRFbnY6Q0lfTkVUUkNfVVNFUk5BTUUiID4+ICRuZXRyYzsKInBhc3N3b3JkICRFbnY6Q0lfTkVUUkNfUEFTU1dPUkQiID4+ICRuZXRyYzsKfTsKW0Vudmlyb25tZW50XTo6U2V0RW52aXJvbm1lbnRWYXJpYWJsZSgiQ0lfTkVUUkNfUEFTU1dPUkQiLCRudWxsKTsKW0Vudmlyb25tZW50XTo6U2V0RW52aXJvbm1lbnRWYXJpYWJsZSgiQ0lfU0NSSVBUIiwkbnVsbCk7CltFbnZpcm9ubWVudF06OlNldEVudmlyb25tZW50VmFyaWFibGUoIkRST05FX05FVFJDX1VTRVJOQU1FIiwkbnVsbCk7CltFbnZpcm9ubWVudF06OlNldEVudmlyb25tZW50VmFyaWFibGUoIkRST05FX05FVFJDX1BBU1NXT1JEIiwkbnVsbCk7CgpXcml0ZS1PdXRwdXQgKCcrICJnbyBnZXQgLXQgLlxcLi4uIicpOyAgW0NvbnNvbGVdOjpPdXQuRmx1c2goKQomIGdvIGdldCAtdCAuXC4uLjsgaWYgKCRMQVNURVhJVENPREUgLW5lIDApIHtleGl0ICRMQVNURVhJVENPREV9CgpXcml0ZS1PdXRwdXQgKCcrICJnbyBidWlsZCInKTsgIFtDb25zb2xlXTo6T3V0LkZsdXNoKCkKJiBnbyBidWlsZDsgaWYgKCRMQVNURVhJVENPREUgLW5lIDApIHtleGl0ICRMQVNURVhJVENPREV9CgpXcml0ZS1PdXRwdXQgKCcrICJnbyB0ZXN0IC12IicpOyAgW0NvbnNvbGVdOjpPdXQuRmx1c2goKQomIGdvIHRlc3QgLXY7IGlmICgkTEFTVEVYSVRDT0RFIC1uZSAwKSB7ZXhpdCAkTEFTVEVYSVRDT0RFfQoK", - "CI_SYSTEM": "pipec", - "CI_SYSTEM_PLATFORM": "windows/amd64", - "CI_SYSTEM_URL": "https://github.com/cncd/pipec", - "CI_SYSTEM_NAME": "pipec", - "CI_WORKSPACE": "c:\\gopath/src\\github.com\\drone\\envsubst", - "CI_ARCH": "windows/amd64", - "CI_BRANCH": "main", - "CI_PIPELINE_URL": "https://github.com/cncd/pipec/drone/envsubst/6", - "CI_COMMIT": "d0876d3176965f9552a611cbd56e24a9264355e6", - "CI_STEP_STARTED": "1486119585", - "CI_REPO_OWNER": "drone", - "CI_REPO_SCM": "git", - "HOME": "c:\\root", - "SHELL": "powershell.exe" - }, - "entrypoint": ["powershell", "-noprofile", "-noninteractive", "-command"], - "command": [ - "[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($Env:CI_SCRIPT)) | iex" - ], - "volumes": ["pipeline_default:c:\\gopath"], - "networks": [ - { - "name": "pipeline_default", - "aliases": ["build"] - } - ], - "on_success": true, - "auth_config": {} - } - ] - } - ], - "networks": [ - { - "name": "pipeline_default", - "driver": "nat" - } - ], - "volumes": [ - { - "name": "pipeline_default", - "driver": "local" - } - ], - "secrets": null -} diff --git a/pipeline/samples/sample_10_windows/pipeline.yml b/pipeline/samples/sample_10_windows/pipeline.yml deleted file mode 100644 index 7e8f9bfb81..0000000000 --- a/pipeline/samples/sample_10_windows/pipeline.yml +++ /dev/null @@ -1,18 +0,0 @@ -platform: windows/amd64 - -workspace: - base: c:\gopath - path: src\github.com\drone\envsubst - -clone: - git: - image: woodpeckerci/plugin-git:windows - depth: 50 - -steps: - build: - image: golang:1.10.1-nanoserver-sac2016 - commands: - - go get -t .\... - - go build - - go test -v diff --git a/pipeline/samples/sample_2/.env b/pipeline/samples/sample_2/.env deleted file mode 100644 index 60e404e579..0000000000 --- a/pipeline/samples/sample_2/.env +++ /dev/null @@ -1,16 +0,0 @@ -CI_COMMIT_AUTHOR=egorsmkv -CI_COMMIT_BRANCH=master -CI_COMMIT_MESSAGE="Fix many urls" -CI_COMMIT_REF=refs/heads/master -CI_COMMIT_REFSPEC= -CI_COMMIT_SHA=2e00b5cd70399450106cec6431c2e2ce3cae5034 -CI_PIPELINE_CREATED=1486119586 -CI_PIPELINE_EVENT=push -CI_PIPELINE_NUMBER=530 -CI_PIPELINE_STARTED=1486119585 -CI_PIPELINE_URL= -CI_REPO=go-sql-driver/mysql -CI_REPO_CLONE_URL=https://github.com/go-sql-driver/mysql.git -CI_REPO_NAME=go-sql-driver/mysql -CI_REPO_PRIVATE=false -CI_REPO_URL=https://github.com/go-sql-driver/mysql diff --git a/pipeline/samples/sample_2/pipeline.json b/pipeline/samples/sample_2/pipeline.json deleted file mode 100644 index 24fc4fa8d4..0000000000 --- a/pipeline/samples/sample_2/pipeline.json +++ /dev/null @@ -1,153 +0,0 @@ -{ - "pipeline": [ - { - "name": "pipeline_clone", - "alias": "clone", - "steps": [ - { - "name": "pipeline_clone", - "image": "woodpeckerci/plugin-git:latest", - "working_dir": "/go/src/github.com/go-sql-driver/mysql", - "environment": { - "CI": "pipec", - "CI_PIPELINE_CREATED": "1486119586", - "CI_PIPELINE_EVENT": "push", - "CI_PIPELINE_NUMBER": "530", - "CI_PIPELINE_STARTED": "1486119585", - "CI_COMMIT_AUTHOR": "egorsmkv", - "CI_COMMIT_BRANCH": "main", - "CI_COMMIT_MESSAGE": "Fix many urls", - "CI_COMMIT_REF": "refs/heads/main", - "CI_COMMIT_SHA": "2e00b5cd70399450106cec6431c2e2ce3cae5034", - "CI_REMOTE_URL": "https://github.com/go-sql-driver/mysql.git", - "CI_REPO": "go-sql-driver/mysql", - "CI_REPO_URL": "https://github.com/go-sql-driver/mysql", - "CI_REPO_NAME": "go-sql-driver/mysql", - "CI_REPO_CLONE_URL": "https://github.com/go-sql-driver/mysql.git", - "CI_SYSTEM": "pipec", - "CI_SYSTEM_PLATFORM": "linux/amd64", - "CI_SYSTEM_URL": "https://github.com/cncd/pipec", - "CI_SYSTEM_NAME": "pipec", - "CI_WORKSPACE": "/go/src/github.com/go-sql-driver/mysql", - "PLUGIN_DEPTH": "0" - }, - "volumes": ["pipeline_default:/go"], - "networks": [ - { - "name": "pipeline_default", - "aliases": null - } - ], - "on_success": true, - "auth_config": {} - } - ] - }, - { - "name": "pipeline_services", - "alias": "services", - "steps": [ - { - "name": "pipeline_services_0", - "alias": "database", - "image": "mysql:latest", - "detach": true, - "environment": { - "CI": "pipec", - "CI_PIPELINE_CREATED": "1486119586", - "CI_PIPELINE_EVENT": "push", - "CI_PIPELINE_NUMBER": "530", - "CI_PIPELINE_STARTED": "1486119585", - "CI_COMMIT_AUTHOR": "egorsmkv", - "CI_COMMIT_BRANCH": "main", - "CI_COMMIT_MESSAGE": "Fix many urls", - "CI_COMMIT_REF": "refs/heads/main", - "CI_COMMIT_SHA": "2e00b5cd70399450106cec6431c2e2ce3cae5034", - "CI_REMOTE_URL": "https://github.com/go-sql-driver/mysql.git", - "CI_REPO": "go-sql-driver/mysql", - "CI_REPO_URL": "https://github.com/go-sql-driver/mysql", - "CI_REPO_NAME": "go-sql-driver/mysql", - "CI_REPO_CLONE_URL": "https://github.com/go-sql-driver/mysql.git", - "CI_SYSTEM": "pipec", - "CI_SYSTEM_PLATFORM": "linux/amd64", - "CI_SYSTEM_URL": "https://github.com/cncd/pipec", - "CI_SYSTEM_NAME": "pipec", - "CI_WORKSPACE": "/go/src/github.com/go-sql-driver/mysql", - "MYSQL_ALLOW_EMPTY_PASSWORD": "yes", - "MYSQL_DATABASE": "gotest" - }, - "volumes": ["pipeline_default:/go"], - "networks": [ - { - "name": "pipeline_default", - "aliases": ["database"] - } - ], - "on_success": true, - "auth_config": {} - } - ] - }, - { - "name": "pipeline_stage_0", - "alias": "build", - "steps": [ - { - "name": "pipeline_step_0", - "alias": "build", - "image": "golang:1.7", - "working_dir": "/go/src/github.com/go-sql-driver/mysql", - "environment": { - "CI": "pipec", - "CI_PIPELINE_CREATED": "1486119586", - "CI_PIPELINE_EVENT": "push", - "CI_PIPELINE_NUMBER": "530", - "CI_PIPELINE_STARTED": "1486119585", - "CI_COMMIT_AUTHOR": "egorsmkv", - "CI_COMMIT_BRANCH": "main", - "CI_COMMIT_MESSAGE": "Fix many urls", - "CI_COMMIT_REF": "refs/heads/main", - "CI_COMMIT_SHA": "2e00b5cd70399450106cec6431c2e2ce3cae5034", - "CI_REMOTE_URL": "https://github.com/go-sql-driver/mysql.git", - "CI_REPO": "go-sql-driver/mysql", - "CI_REPO_URL": "https://github.com/go-sql-driver/mysql", - "CI_REPO_NAME": "go-sql-driver/mysql", - "CI_REPO_CLONE_URL": "https://github.com/go-sql-driver/mysql.git", - "CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAoKZWNobyArICJzbGVlcCAyMCIKc2xlZXAgMjAKCmVjaG8gKyAiZ28gZ2V0IC12IC10IgpnbyBnZXQgLXYgLXQKCmVjaG8gKyAiZ28gdGVzdCAtdiIKZ28gdGVzdCAtdgoK", - "CI_SYSTEM": "pipec", - "CI_SYSTEM_PLATFORM": "linux/amd64", - "CI_SYSTEM_URL": "https://github.com/cncd/pipec", - "CI_SYSTEM_NAME": "pipec", - "CI_WORKSPACE": "/go/src/github.com/go-sql-driver/mysql", - "HOME": "/root", - "MYSQL_TEST_ADDR": "database:3306", - "SHELL": "/bin/sh" - }, - "entrypoint": ["/bin/sh", "-c"], - "command": ["echo $CI_SCRIPT | base64 -d | /bin/sh -e"], - "volumes": ["pipeline_default:/go"], - "networks": [ - { - "name": "pipeline_default", - "aliases": ["database"] - } - ], - "on_success": true, - "auth_config": {} - } - ] - } - ], - "networks": [ - { - "name": "pipeline_default", - "driver": "bridge" - } - ], - "volumes": [ - { - "name": "pipeline_default", - "driver": "local" - } - ] -} diff --git a/pipeline/samples/sample_2/pipeline.yml b/pipeline/samples/sample_2/pipeline.yml deleted file mode 100644 index 7deb923486..0000000000 --- a/pipeline/samples/sample_2/pipeline.yml +++ /dev/null @@ -1,20 +0,0 @@ -workspace: - base: /go - path: src/github.com/go-sql-driver/mysql - -steps: - build: - image: golang:1.7 - environment: - MYSQL_TEST_ADDR: database:3306 - commands: - - sleep 20 - - go get -v -t - - go test -v - -services: - database: - image: mysql - environment: - - MYSQL_DATABASE=gotest - - MYSQL_ALLOW_EMPTY_PASSWORD=yes diff --git a/pipeline/samples/sample_3/.env b/pipeline/samples/sample_3/.env deleted file mode 100644 index 2a6815f920..0000000000 --- a/pipeline/samples/sample_3/.env +++ /dev/null @@ -1,16 +0,0 @@ -CI_COMMIT_AUTHOR=bradrydzewski -CI_COMMIT_BRANCH=master -CI_COMMIT_MESSAGE="added a few more test cases for escaping behavior" -CI_COMMIT_REF=refs/heads/master -CI_COMMIT_REFSPEC= -CI_COMMIT_SHA=d0876d3176965f9552a611cbd56e24a9264355e6 -CI_PIPELINE_CREATED=1486119586 -CI_PIPELINE_EVENT=push -CI_PIPELINE_NUMBER=6 -CI_PIPELINE_STARTED=1486119585 -CI_PIPELINE_URL= -CI_REPO=drone/envsubst -CI_REPO_CLONE_URL=https://github.com/drone/envsubst.git -CI_REPO_NAME=drone/envsubst -CI_REPO_PRIVATE=false -CI_REPO_URL=https://github.com/drone/envsubst diff --git a/pipeline/samples/sample_3/pipeline.json b/pipeline/samples/sample_3/pipeline.json deleted file mode 100644 index 792924350f..0000000000 --- a/pipeline/samples/sample_3/pipeline.json +++ /dev/null @@ -1,156 +0,0 @@ -{ - "pipeline": [ - { - "name": "pipeline_clone_0", - "alias": "git", - "steps": [ - { - "name": "pipeline_clone_0", - "alias": "git", - "image": "woodpeckerci/plugin-git:latest", - "working_dir": "/go/src/github.com/drone/envsubst", - "environment": { - "CI": "pipec", - "CI_PIPELINE_CREATED": "1486119586", - "CI_PIPELINE_EVENT": "push", - "CI_PIPELINE_NUMBER": "6", - "CI_PIPELINE_STARTED": "1486119585", - "CI_COMMIT_AUTHOR": "bradrydzewski", - "CI_COMMIT_BRANCH": "main", - "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", - "CI_COMMIT_REF": "refs/heads/main", - "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", - "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", - "CI_REPO": "drone/envsubst", - "CI_REPO_URL": "https://github.com/drone/envsubst", - "CI_REPO_NAME": "drone/envsubst", - "CI_REPO_CLONE_URL": "https://github.com/drone/envsubst.git", - "CI_SYSTEM": "pipec", - "CI_SYSTEM_PLATFORM": "linux/amd64", - "CI_SYSTEM_URL": "https://github.com/cncd/pipec", - "CI_SYSTEM_NAME": "pipec", - "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", - "PLUGIN_DEPTH": "50" - }, - "volumes": ["pipeline_default:/go"], - "networks": [ - { - "name": "pipeline_default", - "aliases": null - } - ], - "on_success": true, - "auth_config": {} - } - ] - }, - { - "name": "pipeline_stage_0", - "alias": "build", - "steps": [ - { - "name": "pipeline_step_0", - "alias": "build", - "image": "golang:1.7", - "working_dir": "/go/src/github.com/drone/envsubst", - "environment": { - "CI": "pipec", - "CI_PIPELINE_CREATED": "1486119586", - "CI_PIPELINE_EVENT": "push", - "CI_PIPELINE_NUMBER": "6", - "CI_PIPELINE_STARTED": "1486119585", - "CI_COMMIT_AUTHOR": "bradrydzewski", - "CI_COMMIT_BRANCH": "main", - "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", - "CI_COMMIT_REF": "refs/heads/main", - "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", - "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", - "CI_REPO": "drone/envsubst", - "CI_REPO_URL": "https://github.com/drone/envsubst", - "CI_REPO_NAME": "drone/envsubst", - "CI_REPO_CLONE_URL": "https://github.com/drone/envsubst.git", - "CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAoKZWNobyArICJlY2hvIHRoaXMgc3RlcCBzaG91bGQgZmFpbCIKZWNobyB0aGlzIHN0ZXAgc2hvdWxkIGZhaWwKCmVjaG8gKyAiZXhpdCAxIgpleGl0IDEKCg==", - "CI_SYSTEM": "pipec", - "CI_SYSTEM_PLATFORM": "linux/amd64", - "CI_SYSTEM_URL": "https://github.com/cncd/pipec", - "CI_SYSTEM_NAME": "pipec", - "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", - "HOME": "/root", - "SHELL": "/bin/sh" - }, - "entrypoint": ["/bin/sh", "-c"], - "command": ["echo $CI_SCRIPT | base64 -d | /bin/sh -e"], - "volumes": ["pipeline_default:/go"], - "networks": [ - { - "name": "pipeline_default", - "aliases": null - } - ], - "on_success": true, - "auth_config": {} - } - ] - }, - { - "name": "pipeline_stage_1", - "alias": "test", - "steps": [ - { - "name": "pipeline_step_1", - "alias": "test", - "image": "golang:1.7", - "working_dir": "/go/src/github.com/drone/envsubst", - "environment": { - "CI": "pipec", - "CI_PIPELINE_CREATED": "1486119586", - "CI_PIPELINE_EVENT": "push", - "CI_PIPELINE_NUMBER": "6", - "CI_PIPELINE_STARTED": "1486119585", - "CI_COMMIT_AUTHOR": "bradrydzewski", - "CI_COMMIT_BRANCH": "main", - "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", - "CI_COMMIT_REF": "refs/heads/main", - "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", - "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", - "CI_REPO": "drone/envsubst", - "CI_REPO_URL": "https://github.com/drone/envsubst", - "CI_REPO_NAME": "drone/envsubst", - "CI_REPO_CLONE_URL": "https://github.com/drone/envsubst.git", - "CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAoKZWNobyArICJlY2hvIHRoaXMgc3RlcCBzaG91bGQgbmV2ZXIgZXhlY3V0ZSIKZWNobyB0aGlzIHN0ZXAgc2hvdWxkIG5ldmVyIGV4ZWN1dGUKCg==", - "CI_SYSTEM": "pipec", - "CI_SYSTEM_PLATFORM": "linux/amd64", - "CI_SYSTEM_URL": "https://github.com/cncd/pipec", - "CI_SYSTEM_NAME": "pipec", - "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", - "HOME": "/root", - "SHELL": "/bin/sh" - }, - "entrypoint": ["/bin/sh", "-c"], - "command": ["echo $CI_SCRIPT | base64 -d | /bin/sh -e"], - "volumes": ["pipeline_default:/go"], - "networks": [ - { - "name": "pipeline_default", - "aliases": null - } - ], - "on_success": true, - "auth_config": {} - } - ] - } - ], - "networks": [ - { - "name": "pipeline_default", - "driver": "bridge" - } - ], - "volumes": [ - { - "name": "pipeline_default", - "driver": "local" - } - ] -} diff --git a/pipeline/samples/sample_3/pipeline.yml b/pipeline/samples/sample_3/pipeline.yml deleted file mode 100644 index adac66cedd..0000000000 --- a/pipeline/samples/sample_3/pipeline.yml +++ /dev/null @@ -1,19 +0,0 @@ -workspace: - base: /go - path: src/github.com/drone/envsubst - -clone: - git: - image: woodpeckerci/plugin-git - depth: 50 - -steps: - build: - image: golang:1.7 - commands: - - echo this step should fail - - exit 1 - test: - image: golang:1.7 - commands: - - echo this step should never execute diff --git a/pipeline/samples/sample_4/.env b/pipeline/samples/sample_4/.env deleted file mode 100644 index 2a6815f920..0000000000 --- a/pipeline/samples/sample_4/.env +++ /dev/null @@ -1,16 +0,0 @@ -CI_COMMIT_AUTHOR=bradrydzewski -CI_COMMIT_BRANCH=master -CI_COMMIT_MESSAGE="added a few more test cases for escaping behavior" -CI_COMMIT_REF=refs/heads/master -CI_COMMIT_REFSPEC= -CI_COMMIT_SHA=d0876d3176965f9552a611cbd56e24a9264355e6 -CI_PIPELINE_CREATED=1486119586 -CI_PIPELINE_EVENT=push -CI_PIPELINE_NUMBER=6 -CI_PIPELINE_STARTED=1486119585 -CI_PIPELINE_URL= -CI_REPO=drone/envsubst -CI_REPO_CLONE_URL=https://github.com/drone/envsubst.git -CI_REPO_NAME=drone/envsubst -CI_REPO_PRIVATE=false -CI_REPO_URL=https://github.com/drone/envsubst diff --git a/pipeline/samples/sample_4/pipeline.json b/pipeline/samples/sample_4/pipeline.json deleted file mode 100644 index 8082624d75..0000000000 --- a/pipeline/samples/sample_4/pipeline.json +++ /dev/null @@ -1,156 +0,0 @@ -{ - "pipeline": [ - { - "name": "pipeline_clone_0", - "alias": "git", - "steps": [ - { - "name": "pipeline_clone_0", - "alias": "git", - "image": "woodpeckerci/plugin-git:latest", - "working_dir": "/go/src/github.com/drone/envsubst", - "environment": { - "CI": "pipec", - "CI_PIPELINE_CREATED": "1486119586", - "CI_PIPELINE_EVENT": "push", - "CI_PIPELINE_NUMBER": "6", - "CI_PIPELINE_STARTED": "1486119585", - "CI_COMMIT_AUTHOR": "bradrydzewski", - "CI_COMMIT_BRANCH": "main", - "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", - "CI_COMMIT_REF": "refs/heads/main", - "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", - "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", - "CI_REPO": "drone/envsubst", - "CI_REPO_URL": "https://github.com/drone/envsubst", - "CI_REPO_NAME": "drone/envsubst", - "CI_REPO_CLONE_URL": "https://github.com/drone/envsubst.git", - "CI_SYSTEM": "pipec", - "CI_SYSTEM_PLATFORM": "linux/amd64", - "CI_SYSTEM_URL": "https://github.com/cncd/pipec", - "CI_SYSTEM_NAME": "pipec", - "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", - "PLUGIN_DEPTH": "50" - }, - "volumes": ["pipeline_default:/go"], - "networks": [ - { - "name": "pipeline_default", - "aliases": null - } - ], - "on_success": true, - "auth_config": {} - } - ] - }, - { - "name": "pipeline_stage_0", - "alias": "build", - "steps": [ - { - "name": "pipeline_step_0", - "alias": "build", - "image": "golang:1.7", - "working_dir": "/go/src/github.com/drone/envsubst", - "environment": { - "CI": "pipec", - "CI_PIPELINE_CREATED": "1486119586", - "CI_PIPELINE_EVENT": "push", - "CI_PIPELINE_NUMBER": "6", - "CI_PIPELINE_STARTED": "1486119585", - "CI_COMMIT_AUTHOR": "bradrydzewski", - "CI_COMMIT_BRANCH": "main", - "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", - "CI_COMMIT_REF": "refs/heads/main", - "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", - "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", - "CI_REPO": "drone/envsubst", - "CI_REPO_URL": "https://github.com/drone/envsubst", - "CI_REPO_NAME": "drone/envsubst", - "CI_REPO_CLONE_URL": "https://github.com/drone/envsubst.git", - "CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAoKZWNobyArICJlY2hvIHRoaXMgc3RlcCBzaG91bGQgZmFpbCIKZWNobyB0aGlzIHN0ZXAgc2hvdWxkIGZhaWwKCmVjaG8gKyAiZXhpdCAxIgpleGl0IDEKCg==", - "CI_SYSTEM": "pipec", - "CI_SYSTEM_PLATFORM": "linux/amd64", - "CI_SYSTEM_URL": "https://github.com/cncd/pipec", - "CI_SYSTEM_NAME": "pipec", - "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", - "HOME": "/root", - "SHELL": "/bin/sh" - }, - "entrypoint": ["/bin/sh", "-c"], - "command": ["echo $CI_SCRIPT | base64 -d | /bin/sh -e"], - "volumes": ["pipeline_default:/go"], - "networks": [ - { - "name": "pipeline_default", - "aliases": null - } - ], - "on_success": true, - "auth_config": {} - } - ] - }, - { - "name": "pipeline_stage_1", - "alias": "test", - "steps": [ - { - "name": "pipeline_step_1", - "alias": "test", - "image": "golang:1.7", - "working_dir": "/go/src/github.com/drone/envsubst", - "environment": { - "CI": "pipec", - "CI_PIPELINE_CREATED": "1486119586", - "CI_PIPELINE_EVENT": "push", - "CI_PIPELINE_NUMBER": "6", - "CI_PIPELINE_STARTED": "1486119585", - "CI_COMMIT_AUTHOR": "bradrydzewski", - "CI_COMMIT_BRANCH": "main", - "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", - "CI_COMMIT_REF": "refs/heads/main", - "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", - "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", - "CI_REPO": "drone/envsubst", - "CI_REPO_URL": "https://github.com/drone/envsubst", - "CI_REPO_NAME": "drone/envsubst", - "CI_REPO_CLONE_URL": "https://github.com/drone/envsubst.git", - "CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAoKZWNobyArICJlY2hvIHRoaXMgc3RlcCBzaG91bGQgZXhlY3V0ZSwgZGVzcGl0ZSBmYWlsdXJlIgplY2hvIHRoaXMgc3RlcCBzaG91bGQgZXhlY3V0ZSwgZGVzcGl0ZSBmYWlsdXJlCgo=", - "CI_SYSTEM": "pipec", - "CI_SYSTEM_PLATFORM": "linux/amd64", - "CI_SYSTEM_URL": "https://github.com/cncd/pipec", - "CI_SYSTEM_NAME": "pipec", - "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", - "HOME": "/root", - "SHELL": "/bin/sh" - }, - "entrypoint": ["/bin/sh", "-c"], - "command": ["echo $CI_SCRIPT | base64 -d | /bin/sh -e"], - "volumes": ["pipeline_default:/go"], - "networks": [ - { - "name": "pipeline_default", - "aliases": null - } - ], - "on_failure": true, - "auth_config": {} - } - ] - } - ], - "networks": [ - { - "name": "pipeline_default", - "driver": "bridge" - } - ], - "volumes": [ - { - "name": "pipeline_default", - "driver": "local" - } - ] -} diff --git a/pipeline/samples/sample_4/pipeline.yml b/pipeline/samples/sample_4/pipeline.yml deleted file mode 100644 index dd203a6f6b..0000000000 --- a/pipeline/samples/sample_4/pipeline.yml +++ /dev/null @@ -1,21 +0,0 @@ -workspace: - base: /go - path: src/github.com/drone/envsubst - -clone: - git: - image: woodpeckerci/plugin-git - depth: 50 - -steps: - build: - image: golang:1.7 - commands: - - echo this step should fail - - exit 1 - test: - image: golang:1.7 - commands: - - echo this step should execute, despite failure - when: - status: [failure] diff --git a/pipeline/samples/sample_5/.env b/pipeline/samples/sample_5/.env deleted file mode 100644 index 2a6815f920..0000000000 --- a/pipeline/samples/sample_5/.env +++ /dev/null @@ -1,16 +0,0 @@ -CI_COMMIT_AUTHOR=bradrydzewski -CI_COMMIT_BRANCH=master -CI_COMMIT_MESSAGE="added a few more test cases for escaping behavior" -CI_COMMIT_REF=refs/heads/master -CI_COMMIT_REFSPEC= -CI_COMMIT_SHA=d0876d3176965f9552a611cbd56e24a9264355e6 -CI_PIPELINE_CREATED=1486119586 -CI_PIPELINE_EVENT=push -CI_PIPELINE_NUMBER=6 -CI_PIPELINE_STARTED=1486119585 -CI_PIPELINE_URL= -CI_REPO=drone/envsubst -CI_REPO_CLONE_URL=https://github.com/drone/envsubst.git -CI_REPO_NAME=drone/envsubst -CI_REPO_PRIVATE=false -CI_REPO_URL=https://github.com/drone/envsubst diff --git a/pipeline/samples/sample_5/pipeline.json b/pipeline/samples/sample_5/pipeline.json deleted file mode 100644 index f5af6c8490..0000000000 --- a/pipeline/samples/sample_5/pipeline.json +++ /dev/null @@ -1,288 +0,0 @@ -{ - "pipeline": [ - { - "name": "pipeline_clone_0", - "alias": "git", - "steps": [ - { - "name": "pipeline_clone_0", - "alias": "git", - "image": "woodpeckerci/plugin-git:latest", - "working_dir": "/go/src/github.com/drone/envsubst", - "environment": { - "CI": "pipec", - "CI_PIPELINE_CREATED": "1486119586", - "CI_PIPELINE_EVENT": "push", - "CI_PIPELINE_NUMBER": "6", - "CI_PIPELINE_STARTED": "1486119585", - "CI_COMMIT_AUTHOR": "bradrydzewski", - "CI_COMMIT_BRANCH": "main", - "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", - "CI_COMMIT_REF": "refs/heads/main", - "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", - "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", - "CI_REPO": "drone/envsubst", - "CI_REPO_URL": "https://github.com/drone/envsubst", - "CI_REPO_NAME": "drone/envsubst", - "CI_REPO_CLONE_URL": "https://github.com/drone/envsubst.git", - "CI_SYSTEM": "pipec", - "CI_SYSTEM_PLATFORM": "linux/amd64", - "CI_SYSTEM_URL": "https://github.com/cncd/pipec", - "CI_SYSTEM_NAME": "pipec", - "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", - "PLUGIN_DEPTH": "50" - }, - "volumes": ["pipeline_default:/go"], - "networks": [ - { - "name": "pipeline_default", - "aliases": null - } - ], - "on_success": true, - "auth_config": {} - } - ] - }, - { - "name": "pipeline_stage_0", - "alias": "foo", - "steps": [ - { - "name": "pipeline_step_0", - "alias": "foo", - "image": "golang:1.7", - "working_dir": "/go/src/github.com/drone/envsubst", - "environment": { - "CI": "pipec", - "CI_PIPELINE_CREATED": "1486119586", - "CI_PIPELINE_EVENT": "push", - "CI_PIPELINE_NUMBER": "6", - "CI_PIPELINE_STARTED": "1486119585", - "CI_COMMIT_AUTHOR": "bradrydzewski", - "CI_COMMIT_BRANCH": "main", - "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", - "CI_COMMIT_REF": "refs/heads/main", - "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", - "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", - "CI_REPO": "drone/envsubst", - "CI_REPO_URL": "https://github.com/drone/envsubst", - "CI_REPO_NAME": "drone/envsubst", - "CI_REPO_CLONE_URL": "https://github.com/drone/envsubst.git", - "CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAoKZWNobyArICJlY2hvIHN0ZXAgMSIKZWNobyBzdGVwIDEKCmVjaG8gKyAic2xlZXAgMTAiCnNsZWVwIDEwCgplY2hvICsgImVjaG8gZG9uZSAxIgplY2hvIGRvbmUgMQoK", - "CI_SYSTEM": "pipec", - "CI_SYSTEM_PLATFORM": "linux/amd64", - "CI_SYSTEM_URL": "https://github.com/cncd/pipec", - "CI_SYSTEM_NAME": "pipec", - "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", - "HOME": "/root", - "SHELL": "/bin/sh" - }, - "entrypoint": ["/bin/sh", "-c"], - "command": ["echo $CI_SCRIPT | base64 -d | /bin/sh -e"], - "volumes": ["pipeline_default:/go"], - "networks": [ - { - "name": "pipeline_default", - "aliases": null - } - ], - "on_success": true, - "auth_config": {} - }, - { - "name": "pipeline_step_1", - "alias": "bar", - "image": "golang:1.7", - "working_dir": "/go/src/github.com/drone/envsubst", - "environment": { - "CI": "pipec", - "CI_PIPELINE_CREATED": "1486119586", - "CI_PIPELINE_EVENT": "push", - "CI_PIPELINE_NUMBER": "6", - "CI_PIPELINE_STARTED": "1486119585", - "CI_COMMIT_AUTHOR": "bradrydzewski", - "CI_COMMIT_BRANCH": "main", - "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", - "CI_COMMIT_REF": "refs/heads/main", - "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", - "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", - "CI_REPO": "drone/envsubst", - "CI_REPO_URL": "https://github.com/drone/envsubst", - "CI_REPO_NAME": "drone/envsubst", - "CI_REPO_CLONE_URL": "https://github.com/drone/envsubst.git", - "CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAoKZWNobyArICJlY2hvIHN0ZXAgMiIKZWNobyBzdGVwIDIKCmVjaG8gKyAic2xlZXAgMTAiCnNsZWVwIDEwCgplY2hvICsgImVjaG8gZG9uZSAyIgplY2hvIGRvbmUgMgoK", - "CI_SYSTEM": "pipec", - "CI_SYSTEM_PLATFORM": "linux/amd64", - "CI_SYSTEM_URL": "https://github.com/cncd/pipec", - "CI_SYSTEM_NAME": "pipec", - "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", - "HOME": "/root", - "SHELL": "/bin/sh" - }, - "entrypoint": ["/bin/sh", "-c"], - "command": ["echo $CI_SCRIPT | base64 -d | /bin/sh -e"], - "volumes": ["pipeline_default:/go"], - "networks": [ - { - "name": "pipeline_default", - "aliases": null - } - ], - "on_success": true, - "auth_config": {} - } - ] - }, - { - "name": "pipeline_stage_2", - "alias": "baz", - "steps": [ - { - "name": "pipeline_step_2", - "alias": "baz", - "image": "golang:1.7", - "working_dir": "/go/src/github.com/drone/envsubst", - "environment": { - "CI": "pipec", - "CI_PIPELINE_CREATED": "1486119586", - "CI_PIPELINE_EVENT": "push", - "CI_PIPELINE_NUMBER": "6", - "CI_PIPELINE_STARTED": "1486119585", - "CI_COMMIT_AUTHOR": "bradrydzewski", - "CI_COMMIT_BRANCH": "main", - "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", - "CI_COMMIT_REF": "refs/heads/main", - "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", - "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", - "CI_REPO": "drone/envsubst", - "CI_REPO_URL": "https://github.com/drone/envsubst", - "CI_REPO_NAME": "drone/envsubst", - "CI_REPO_CLONE_URL": "https://github.com/drone/envsubst.git", - "CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAoKZWNobyArICJlY2hvIEkgc2hvdWxkIGV4ZWN1dGUgbGFzdC4iCmVjaG8gSSBzaG91bGQgZXhlY3V0ZSBsYXN0LgoKZWNobyArICJlY2hvIGFmdGVyIHRoZSBwcmlvciB0d28gc3RlcHMgZmluaXNoIGV4ZWN1dGlvbi4iCmVjaG8gYWZ0ZXIgdGhlIHByaW9yIHR3byBzdGVwcyBmaW5pc2ggZXhlY3V0aW9uLgoK", - "CI_SYSTEM": "pipec", - "CI_SYSTEM_PLATFORM": "linux/amd64", - "CI_SYSTEM_URL": "https://github.com/cncd/pipec", - "CI_SYSTEM_NAME": "pipec", - "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", - "HOME": "/root", - "SHELL": "/bin/sh" - }, - "entrypoint": ["/bin/sh", "-c"], - "command": ["echo $CI_SCRIPT | base64 -d | /bin/sh -e"], - "volumes": ["pipeline_default:/go"], - "networks": [ - { - "name": "pipeline_default", - "aliases": null - } - ], - "on_success": true, - "auth_config": {} - } - ] - }, - { - "name": "pipeline_stage_3", - "alias": "qux", - "steps": [ - { - "name": "pipeline_step_3", - "alias": "qux", - "image": "golang:1.7", - "working_dir": "/go/src/github.com/drone/envsubst", - "environment": { - "CI": "pipec", - "CI_PIPELINE_CREATED": "1486119586", - "CI_PIPELINE_EVENT": "push", - "CI_PIPELINE_NUMBER": "6", - "CI_PIPELINE_STARTED": "1486119585", - "CI_COMMIT_AUTHOR": "bradrydzewski", - "CI_COMMIT_BRANCH": "main", - "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", - "CI_COMMIT_REF": "refs/heads/main", - "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", - "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", - "CI_REPO": "drone/envsubst", - "CI_REPO_URL": "https://github.com/drone/envsubst", - "CI_REPO_NAME": "drone/envsubst", - "CI_REPO_CLONE_URL": "https://github.com/drone/envsubst.git", - "CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAoKZWNobyArICJlY2hvIHN0ZXAgMyIKZWNobyBzdGVwIDMKCmVjaG8gKyAic2xlZXAgMTAiCnNsZWVwIDEwCgplY2hvICsgImVjaG8gZG9uZSAzIgplY2hvIGRvbmUgMwoK", - "CI_SYSTEM": "pipec", - "CI_SYSTEM_PLATFORM": "linux/amd64", - "CI_SYSTEM_URL": "https://github.com/cncd/pipec", - "CI_SYSTEM_NAME": "pipec", - "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", - "HOME": "/root", - "SHELL": "/bin/sh" - }, - "entrypoint": ["/bin/sh", "-c"], - "command": ["echo $CI_SCRIPT | base64 -d | /bin/sh -e"], - "volumes": ["pipeline_default:/go"], - "networks": [ - { - "name": "pipeline_default", - "aliases": null - } - ], - "on_success": true, - "auth_config": {} - }, - { - "name": "pipeline_step_4", - "alias": "quux", - "image": "golang:1.7", - "working_dir": "/go/src/github.com/drone/envsubst", - "environment": { - "CI": "pipec", - "CI_PIPELINE_CREATED": "1486119586", - "CI_PIPELINE_EVENT": "push", - "CI_PIPELINE_NUMBER": "6", - "CI_PIPELINE_STARTED": "1486119585", - "CI_COMMIT_AUTHOR": "bradrydzewski", - "CI_COMMIT_BRANCH": "main", - "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", - "CI_COMMIT_REF": "refs/heads/main", - "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", - "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", - "CI_REPO": "drone/envsubst", - "CI_REPO_URL": "https://github.com/drone/envsubst", - "CI_REPO_NAME": "drone/envsubst", - "CI_REPO_CLONE_URL": "https://github.com/drone/envsubst.git", - "CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAoKZWNobyArICJlY2hvIHN0ZXAgNCIKZWNobyBzdGVwIDQKCmVjaG8gKyAic2xlZXAgMTAiCnNsZWVwIDEwCgplY2hvICsgImVjaG8gZG9uZSA0IgplY2hvIGRvbmUgNAoK", - "CI_SYSTEM": "pipec", - "CI_SYSTEM_PLATFORM": "linux/amd64", - "CI_SYSTEM_URL": "https://github.com/cncd/pipec", - "CI_SYSTEM_NAME": "pipec", - "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", - "HOME": "/root", - "SHELL": "/bin/sh" - }, - "entrypoint": ["/bin/sh", "-c"], - "command": ["echo $CI_SCRIPT | base64 -d | /bin/sh -e"], - "volumes": ["pipeline_default:/go"], - "networks": [ - { - "name": "pipeline_default", - "aliases": null - } - ], - "on_success": true, - "auth_config": {} - } - ] - } - ], - "networks": [ - { - "name": "pipeline_default", - "driver": "bridge" - } - ], - "volumes": [ - { - "name": "pipeline_default", - "driver": "local" - } - ] -} diff --git a/pipeline/samples/sample_5/pipeline.yml b/pipeline/samples/sample_5/pipeline.yml deleted file mode 100644 index 259591b758..0000000000 --- a/pipeline/samples/sample_5/pipeline.yml +++ /dev/null @@ -1,54 +0,0 @@ -workspace: - base: /go - path: src/github.com/drone/envsubst - -clone: - git: - image: woodpeckerci/plugin-git - depth: 50 - -steps: - # these steps define a parallel execution - # group and will fan out. - - foo: - image: golang:1.7 - group: build - commands: - - echo step 1 - - sleep 10 - - echo done 1 - bar: - image: golang:1.7 - group: build - commands: - - echo step 2 - - sleep 10 - - echo done 2 - - # this step is not grouped with the previous - # steps, resulting in a fan-in. - - baz: - image: golang:1.7 - commands: - - echo I should execute last. - - echo after the prior two steps finish execution. - - # these steps define a parallel execution - # group and will fan back out. - - qux: - image: golang:1.7 - group: test - commands: - - echo step 3 - - sleep 10 - - echo done 3 - quux: - image: golang:1.7 - group: test - commands: - - echo step 4 - - sleep 10 - - echo done 4 diff --git a/pipeline/samples/sample_6/.env b/pipeline/samples/sample_6/.env deleted file mode 100644 index a10af139f4..0000000000 --- a/pipeline/samples/sample_6/.env +++ /dev/null @@ -1,24 +0,0 @@ -CI_COMMIT_AUTHOR=bradrydzewski -CI_COMMIT_BRANCH=master -CI_COMMIT_MESSAGE="added a few more test cases for escaping behavior" -CI_COMMIT_REF=refs/heads/master -CI_COMMIT_REFSPEC= -CI_COMMIT_SHA=d0876d3176965f9552a611cbd56e24a9264355e6 -CI_PIPELINE_CREATED=1486119586 -CI_PIPELINE_EVENT=push -CI_PIPELINE_NUMBER=6 -CI_PIPELINE_STARTED=1486119585 -CI_PIPELINE_URL= -CI_REPO=drone/envsubst -CI_REPO_CLONE_URL=https://github.com/drone/envsubst.git -CI_REPO_NAME=drone/envsubst -CI_REPO_PRIVATE=false -CI_REPO_URL=https://github.com/drone/envsubst - -# custom secrets -SLACK_WEBHOOK=https://slack.com/hooks/xxxxxxxx/yyyyyyyyy - -# registry secrets -CI_REGISTRY_HOSTNAME=docker.io -CI_REGISTRY_PASSWORD=password -CI_REGISTRY_USERNAME=gordon diff --git a/pipeline/samples/sample_6/pipeline.json b/pipeline/samples/sample_6/pipeline.json deleted file mode 100644 index 30e98f6684..0000000000 --- a/pipeline/samples/sample_6/pipeline.json +++ /dev/null @@ -1,187 +0,0 @@ -{ - "pipeline": [ - { - "name": "pipeline_clone_0", - "alias": "git", - "steps": [ - { - "name": "pipeline_clone_0", - "alias": "git", - "image": "woodpeckerci/plugin-git:latest", - "working_dir": "/go/src/github.com/drone/envsubst", - "environment": { - "CI": "drone", - "CI_PIPELINE_CREATED": "1486119586", - "CI_PIPELINE_EVENT": "push", - "CI_PIPELINE_NUMBER": "6", - "CI_PIPELINE_STARTED": "1486119585", - "CI_COMMIT_AUTHOR": "bradrydzewski", - "CI_COMMIT_BRANCH": "main", - "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", - "CI_COMMIT_REF": "refs/heads/main", - "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", - "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", - "CI_REPO": "drone/envsubst", - "CI_REPO_URL": "https://github.com/drone/envsubst", - "CI_REPO_NAME": "drone/envsubst", - "CI_REPO_CLONE_URL": "https://github.com/drone/envsubst.git", - "CI_SYSTEM": "pipec", - "CI_SYSTEM_PLATFORM": "linux/amd64", - "CI_SYSTEM_URL": "https://github.com/cncd/pipec", - "CI_SYSTEM_NAME": "pipec", - "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", - "CI_ARCH": "linux/amd64", - "CI_BRANCH": "main", - "CI_PIPELINE_URL": "https://github.com/cncd/pipec/drone/envsubst/6", - "CI_COMMIT": "d0876d3176965f9552a611cbd56e24a9264355e6", - "CI_STEP_STARTED": "1486119585", - "CI_REPO_BRANCH": "main", - "CI_REPO_OWNER": "drone", - "CI_REPO_SCM": "git", - "PLUGIN_DEPTH": "50" - }, - "volumes": ["pipeline_default:/go"], - "networks": [ - { - "name": "pipeline_default", - "aliases": null - } - ], - "on_success": true, - "auth_config": { - "username": "gordon", - "password": "password" - } - } - ] - }, - { - "name": "pipeline_stage_0", - "alias": "build", - "steps": [ - { - "name": "pipeline_step_0", - "alias": "build", - "image": "golang:1.7", - "working_dir": "/go/src/github.com/drone/envsubst", - "environment": { - "CI": "drone", - "CI_PIPELINE_CREATED": "1486119586", - "CI_PIPELINE_EVENT": "push", - "CI_PIPELINE_NUMBER": "6", - "CI_PIPELINE_STARTED": "1486119585", - "CI_COMMIT_AUTHOR": "bradrydzewski", - "CI_COMMIT_BRANCH": "main", - "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", - "CI_COMMIT_REF": "refs/heads/main", - "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", - "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", - "CI_REPO": "drone/envsubst", - "CI_REPO_URL": "https://github.com/drone/envsubst", - "CI_REPO_NAME": "drone/envsubst", - "CI_REPO_CLONE_URL": "https://github.com/drone/envsubst.git", - "CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAoKZWNobyArICJnbyBnZXQgLXQgLi8uLi4iCmdvIGdldCAtdCAuLy4uLgoKZWNobyArICJnbyBidWlsZCIKZ28gYnVpbGQKCmVjaG8gKyAiZ28gdGVzdCAtdiIKZ28gdGVzdCAtdgoK", - "CI_SYSTEM": "pipec", - "CI_SYSTEM_PLATFORM": "linux/amd64", - "CI_SYSTEM_URL": "https://github.com/cncd/pipec", - "CI_SYSTEM_NAME": "pipec", - "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", - "CI_ARCH": "linux/amd64", - "CI_BRANCH": "main", - "CI_COMMIT": "d0876d3176965f9552a611cbd56e24a9264355e6", - "CI_STEP_STARTED": "1486119585", - "CI_REPO_BRANCH": "main", - "CI_REPO_OWNER": "drone", - "CI_REPO_SCM": "git", - "HOME": "/root", - "SHELL": "/bin/sh" - }, - "entrypoint": ["/bin/sh", "-c"], - "command": ["echo $CI_SCRIPT | base64 -d | /bin/sh -e"], - "volumes": ["pipeline_default:/go"], - "networks": [ - { - "name": "pipeline_default", - "aliases": null - } - ], - "on_success": true, - "auth_config": { - "username": "gordon", - "password": "password" - } - } - ] - }, - { - "name": "pipeline_stage_1", - "alias": "slack", - "steps": [ - { - "name": "pipeline_step_1", - "alias": "slack", - "image": "plugins/slack:latest", - "working_dir": "/go/src/github.com/drone/envsubst", - "environment": { - "CI": "drone", - "CI_PIPELINE_CREATED": "1486119586", - "CI_PIPELINE_EVENT": "push", - "CI_PIPELINE_NUMBER": "6", - "CI_PIPELINE_STARTED": "1486119585", - "CI_COMMIT_AUTHOR": "bradrydzewski", - "CI_COMMIT_BRANCH": "main", - "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", - "CI_COMMIT_REF": "refs/heads/main", - "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", - "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", - "CI_REPO": "drone/envsubst", - "CI_REPO_URL": "https://github.com/drone/envsubst", - "CI_REPO_NAME": "drone/envsubst", - "CI_REPO_CLONE_URL": "https://github.com/drone/envsubst.git", - "CI_SYSTEM": "pipec", - "CI_SYSTEM_PLATFORM": "linux/amd64", - "CI_SYSTEM_URL": "https://github.com/cncd/pipec", - "CI_SYSTEM_NAME": "pipec", - "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", - "CI_ARCH": "linux/amd64", - "CI_BRANCH": "main", - "CI_PIPELINE_URL": "https://github.com/cncd/pipec/drone/envsubst/6", - "CI_COMMIT": "d0876d3176965f9552a611cbd56e24a9264355e6", - "CI_STEP_STARTED": "1486119585", - "CI_REPO_BRANCH": "main", - "CI_REPO_OWNER": "drone", - "CI_REPO_SCM": "git", - "PLUGIN_CHANNEL": "builds", - "PLUGIN_USERNAME": "drone", - "SLACK_WEBHOOK": "https://slack.com/hooks/xxxxxxxx/yyyyyyyyy" - }, - "volumes": ["pipeline_default:/go"], - "networks": [ - { - "name": "pipeline_default", - "aliases": null - } - ], - "on_success": true, - "auth_config": { - "username": "gordon", - "password": "password" - } - } - ] - } - ], - "networks": [ - { - "name": "pipeline_default", - "driver": "bridge" - } - ], - "volumes": [ - { - "name": "pipeline_default", - "driver": "local" - } - ], - "secrets": null -} diff --git a/pipeline/samples/sample_6/pipeline.yml b/pipeline/samples/sample_6/pipeline.yml deleted file mode 100644 index 250b661cee..0000000000 --- a/pipeline/samples/sample_6/pipeline.yml +++ /dev/null @@ -1,22 +0,0 @@ -workspace: - base: /go - path: src/github.com/drone/envsubst - -clone: - git: - image: woodpeckerci/plugin-git - depth: 50 - -steps: - build: - image: golang:1.7 - commands: - - go get -t ./... - - go build - - go test -v - - slack: - image: plugins/slack - channel: builds - username: drone - secrets: [slack_webhook] diff --git a/pipeline/samples/sample_7_redis/pipeline.json b/pipeline/samples/sample_7_redis/pipeline.json deleted file mode 100644 index c0a41aad96..0000000000 --- a/pipeline/samples/sample_7_redis/pipeline.json +++ /dev/null @@ -1,119 +0,0 @@ -{ - "pipeline": [ - { - "name": "pipeline_services", - "alias": "services", - "steps": [ - { - "name": "pipeline_services_0", - "alias": "redis1", - "image": "redis:3.0", - "detach": true, - "environment": { - "CI": "drone", - "CI_SYSTEM": "pipec", - "CI_SYSTEM_PLATFORM": "linux/amd64", - "CI_SYSTEM_URL": "https://github.com/cncd/pipec", - "CI_SYSTEM_NAME": "pipec", - "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", - "CI_ARCH": "linux/amd64", - "CI_PIPELINE_URL": "https://github.com/cncd/pipec//0", - "CI_REPO_SCM": "git" - }, - "volumes": [ - "/Users/bradrydzewski/code/src/github.com/woodpecker-ci/woodpecker/cncd/pipeline/samples/sample_7_redis:/go/src/github.com/drone/envsubst" - ], - "networks": [ - { - "name": "pipeline_default", - "aliases": ["redis1"] - } - ], - "on_success": true, - "auth_config": {} - }, - { - "name": "pipeline_services_1", - "alias": "redis2", - "image": "redis:3.0", - "detach": true, - "environment": { - "CI": "drone", - "CI_SYSTEM": "pipec", - "CI_SYSTEM_PLATFORM": "linux/amd64", - "CI_SYSTEM_URL": "https://github.com/cncd/pipec", - "CI_SYSTEM_NAME": "pipec", - "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", - "CI_ARCH": "linux/amd64", - "CI_PIPELINE_URL": "https://github.com/cncd/pipec//0", - "CI_REPO_SCM": "git" - }, - "volumes": [ - "/Users/bradrydzewski/code/src/github.com/woodpecker-ci/woodpecker/cncd/pipeline/samples/sample_7_redis:/go/src/github.com/drone/envsubst" - ], - "networks": [ - { - "name": "pipeline_default", - "aliases": ["redis2"] - } - ], - "on_success": true, - "auth_config": {} - } - ] - }, - { - "name": "pipeline_stage_0", - "alias": "build", - "steps": [ - { - "name": "pipeline_step_0", - "alias": "build", - "image": "redis:3.0", - "working_dir": "/go/src/github.com/drone/envsubst", - "environment": { - "CI": "drone", - "CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAp1bnNldCBEUk9ORV9ORVRSQ19VU0VSTkFNRQp1bnNldCBEUk9ORV9ORVRSQ19QQVNTV09SRAoKZWNobyArICJzbGVlcCAxIgpzbGVlcCAxCgplY2hvICsgInJlZGlzLWNsaSAtaCByZWRpczEgcGluZyIKcmVkaXMtY2xpIC1oIHJlZGlzMSBwaW5nCgplY2hvICsgInJlZGlzLWNsaSAtaCByZWRpczIgcGluZyIKcmVkaXMtY2xpIC1oIHJlZGlzMiBwaW5nCgplY2hvICsgInJlZGlzLWNsaSAtaCByZWRpczEgc2V0IEhFTExPIGhlbGxvIgpyZWRpcy1jbGkgLWggcmVkaXMxIHNldCBIRUxMTyBoZWxsbwoKZWNobyArICJyZWRpcy1jbGkgLWggcmVkaXMyIHNldCBIRUxMTyBob2xhIgpyZWRpcy1jbGkgLWggcmVkaXMyIHNldCBIRUxMTyBob2xhCgplY2hvICsgInJlZGlzLWNsaSAtaCByZWRpczEgZ2V0IEhFTExPIgpyZWRpcy1jbGkgLWggcmVkaXMxIGdldCBIRUxMTwoKZWNobyArICJyZWRpcy1jbGkgLWggcmVkaXMyIGdldCBIRUxMTyIKcmVkaXMtY2xpIC1oIHJlZGlzMiBnZXQgSEVMTE8KCg==", - "CI_SYSTEM": "pipec", - "CI_SYSTEM_PLATFORM": "linux/amd64", - "CI_SYSTEM_URL": "https://github.com/cncd/pipec", - "CI_SYSTEM_NAME": "pipec", - "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", - "DRONE": "true", - "CI_ARCH": "linux/amd64", - "CI_PIPELINE_URL": "https://github.com/cncd/pipec//0", - "CI_REPO_SCM": "git", - "HOME": "/root", - "SHELL": "/bin/sh" - }, - "entrypoint": ["/bin/sh", "-c"], - "command": ["echo $CI_SCRIPT | base64 -d | /bin/sh -e"], - "volumes": [ - "/Users/bradrydzewski/code/src/github.com/woodpecker-ci/woodpecker/cncd/pipeline/samples/sample_7_redis:/go/src/github.com/drone/envsubst" - ], - "networks": [ - { - "name": "pipeline_default", - "aliases": ["build"] - } - ], - "on_success": true, - "auth_config": {} - } - ] - } - ], - "networks": [ - { - "name": "pipeline_default", - "driver": "bridge" - } - ], - "volumes": [ - { - "name": "pipeline_default", - "driver": "local" - } - ], - "secrets": null -} diff --git a/pipeline/samples/sample_7_redis/pipeline.yml b/pipeline/samples/sample_7_redis/pipeline.yml deleted file mode 100644 index 0563a427da..0000000000 --- a/pipeline/samples/sample_7_redis/pipeline.yml +++ /dev/null @@ -1,21 +0,0 @@ -workspace: - base: /go - path: src/github.com/drone/envsubst - -steps: - build: - image: redis:3.0 - commands: - - sleep 1 # redis needs a second to init - - redis-cli -h redis1 ping - - redis-cli -h redis2 ping - - redis-cli -h redis1 set HELLO hello - - redis-cli -h redis2 set HELLO hola - - redis-cli -h redis1 get HELLO - - redis-cli -h redis2 get HELLO - -services: - redis1: - image: redis:3.0 - redis2: - image: redis:3.0 diff --git a/pipeline/samples/sample_8_network_mode/README.md b/pipeline/samples/sample_8_network_mode/README.md deleted file mode 100644 index 47896db6c3..0000000000 --- a/pipeline/samples/sample_8_network_mode/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# Example - -Compile the yaml to the intermediate representation: - -```sh -pipec compile -``` - -Execute the intermediate representation: - -```sh -pipec exec -``` - -This example shows how to use the network_mode option to use the network defined -by other container. This is useful for example to allow the CI to connect with servers -behind a VPN. - -Before to start you need to create a container that connects to the VPN (using one of -the openvpn client images like ). diff --git a/pipeline/samples/sample_8_network_mode/pipeline.json b/pipeline/samples/sample_8_network_mode/pipeline.json deleted file mode 100644 index 54b7490974..0000000000 --- a/pipeline/samples/sample_8_network_mode/pipeline.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "pipeline": [ - { - "name": "pipeline_clone_0", - "alias": "git", - "steps": [ - { - "name": "pipeline_clone_0", - "alias": "git", - "image": "woodpeckerci/plugin-git:latest", - "working_dir": "/go/src/github.com/drone/envsubst", - "environment": { - "CI": "drone", - "CI_SYSTEM": "pipec", - "CI_SYSTEM_PLATFORM": "linux/amd64", - "CI_SYSTEM_URL": "https://github.com/cncd/pipec", - "CI_SYSTEM_NAME": "pipec", - "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", - "CI_ARCH": "linux/amd64", - "CI_PIPELINE_URL": "https://github.com/cncd/pipec//0", - "CI_REPO_SCM": "git", - "PLUGIN_DEPTH": "50" - }, - "volumes": ["pipeline_default:/go"], - "networks": [ - { - "name": "pipeline_default", - "aliases": ["git"] - } - ], - "on_success": true, - "auth_config": {} - } - ] - }, - { - "name": "pipeline_stage_0", - "alias": "build", - "steps": [ - { - "name": "pipeline_step_0", - "alias": "build", - "image": "tutum/curl:latest", - "working_dir": "/go/src/github.com/drone/envsubst", - "environment": { - "CI": "drone", - "CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAp1bnNldCBEUk9ORV9ORVRSQ19VU0VSTkFNRQp1bnNldCBEUk9ORV9ORVRSQ19QQVNTV09SRAoKZWNobyArICJjdXJsIC1zIC1mIC1MIGh0dHA6Ly9IT1NUX09SX0lQLyIKY3VybCAtcyAtZiAtTCBodHRwOi8vSE9TVF9PUl9JUC8KCg==", - "CI_SYSTEM": "pipec", - "CI_SYSTEM_PLATFORM": "linux/amd64", - "CI_SYSTEM_URL": "https://github.com/cncd/pipec", - "CI_SYSTEM_NAME": "pipec", - "CI_WORKSPACE": "/go/src/github.com/drone/envsubst", - "CI_ARCH": "linux/amd64", - "CI_PIPELINE_URL": "https://github.com/cncd/pipec//0", - "CI_REPO_SCM": "git", - "HOME": "/root", - "SHELL": "/bin/sh" - }, - "entrypoint": ["/bin/sh", "-c"], - "command": ["echo $CI_SCRIPT | base64 -d | /bin/sh -e"], - "volumes": ["pipeline_default:/go"], - "networks": [ - { - "name": "pipeline_default", - "aliases": ["build"] - } - ], - "on_success": true, - "auth_config": {}, - "network_mode": "container:vpn" - } - ] - } - ], - "networks": [ - { - "name": "pipeline_default", - "driver": "bridge" - } - ], - "volumes": [ - { - "name": "pipeline_default", - "driver": "local" - } - ], - "secrets": null -} diff --git a/pipeline/samples/sample_8_network_mode/pipeline.yml b/pipeline/samples/sample_8_network_mode/pipeline.yml deleted file mode 100644 index cd8d2a03fe..0000000000 --- a/pipeline/samples/sample_8_network_mode/pipeline.yml +++ /dev/null @@ -1,17 +0,0 @@ -workspace: - base: /go - path: src/github.com/drone/envsubst - -clone: - git: - image: woodpeckerci/plugin-git - depth: 50 - -steps: - build: - image: tutum/curl - # A container named "vpn" should exist on the same docker daemon - network_mode: 'container:vpn' - # Replace HOST_OR_IP with the IP or hostname of a server behind the VPN - commands: - - curl -s -f -L http://HOST_OR_IP/ diff --git a/pipeline/samples/sample_8_postgres/pipeline.yml b/pipeline/samples/sample_8_postgres/pipeline.yml deleted file mode 100644 index a7ed115aa5..0000000000 --- a/pipeline/samples/sample_8_postgres/pipeline.yml +++ /dev/null @@ -1,16 +0,0 @@ -steps: - ping: - image: postgres - commands: - - sleep 10 - - psql -U postgres -d test -h database -p 5432 -c "CREATE TABLE person( NAME TEXT );" - - psql -U postgres -d test -h database -p 5432 -c "INSERT INTO person VALUES('john smith');" - - psql -U postgres -d test -h database -p 5432 -c "INSERT INTO person VALUES('jane doe');" - - psql -U postgres -d test -h database -p 5432 -c "SELECT * FROM person;" - -services: - database: - image: postgres - environment: - - POSTGRES_USER=postgres - - POSTGRES_DB=test diff --git a/pipeline/samples/sample_9_cache/.env b/pipeline/samples/sample_9_cache/.env deleted file mode 100644 index 5d630c59bb..0000000000 --- a/pipeline/samples/sample_9_cache/.env +++ /dev/null @@ -1,18 +0,0 @@ -CI_COMMIT_AUTHOR=bradrydzewski -CI_COMMIT_BRANCH=master -CI_COMMIT_MESSAGE="added a few more test cases for escaping behavior" -CI_COMMIT_REF=refs/heads/master -CI_COMMIT_REFSPEC= -CI_COMMIT_SHA=d0876d3176965f9552a611cbd56e24a9264355e6 -CI_PIPELINE_CREATED=1486119586 -CI_PIPELINE_EVENT=push -CI_PIPELINE_NUMBER=6 -CI_PIPELINE_STARTED=1486119585 -CI_PIPELINE_URL= -CI_REPO=drone/envsubst -CI_REPO_CLONE_URL=https://github.com/drone/envsubst.git -CI_REPO_NAME=drone/envsubst -CI_REPO_PRIVATE=false -CI_REPO_URL=https://github.com/drone/envsubst -CI_VOLUME_CACHE=true -CI_VOLUME_CACHE_BASE=/cache/drone diff --git a/pipeline/samples/sample_9_cache/pipeline.json b/pipeline/samples/sample_9_cache/pipeline.json deleted file mode 100644 index 387e6158e2..0000000000 --- a/pipeline/samples/sample_9_cache/pipeline.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "pipeline": [ - { - "name": "pipeline_clone", - "alias": "clone", - "steps": [ - { - "name": "pipeline_clone", - "alias": "clone", - "image": "woodpeckerci/plugin-git:latest", - "working_dir": "/pipeline/src", - "environment": { - "CI": "drone", - "CI_PIPELINE_CREATED": "1486119586", - "CI_PIPELINE_EVENT": "push", - "CI_PIPELINE_NUMBER": "6", - "CI_PIPELINE_STARTED": "1486119585", - "CI_COMMIT_AUTHOR": "bradrydzewski", - "CI_COMMIT_BRANCH": "main", - "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", - "CI_COMMIT_REF": "refs/heads/main", - "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", - "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", - "CI_REPO": "drone/envsubst", - "CI_REPO_URL": "https://github.com/drone/envsubst", - "CI_REPO_NAME": "drone/envsubst", - "CI_REPO_CLONE_URL": "https://github.com/drone/envsubst.git", - "CI_SYSTEM": "pipec", - "CI_SYSTEM_PLATFORM": "linux/amd64", - "CI_SYSTEM_URL": "https://github.com/cncd/pipec", - "CI_SYSTEM_NAME": "pipec", - "CI_WORKSPACE": "/pipeline/src", - "CI_ARCH": "linux/amd64", - "CI_BRANCH": "main", - "CI_PIPELINE_URL": "https://github.com/cncd/pipec/drone/envsubst/6", - "CI_COMMIT": "d0876d3176965f9552a611cbd56e24a9264355e6", - "CI_STEP_STARTED": "1486119585", - "CI_REPO_BRANCH": "main", - "CI_REPO_OWNER": "drone", - "CI_REPO_SCM": "git", - "PLUGIN_DEPTH": "0" - }, - "volumes": ["pipeline_default:/pipeline"], - "networks": [ - { - "name": "pipeline_default", - "aliases": ["clone"] - } - ], - "on_success": true, - "auth_config": {} - } - ] - }, - { - "name": "pipeline_restore_cache", - "alias": "restore_cache", - "steps": [ - { - "name": "pipeline_restore_cache", - "alias": "rebuild_cache", - "image": "plugins/volume-cache:1.0.0", - "working_dir": "/pipeline/src", - "environment": { - "CI": "drone", - "CI_PIPELINE_CREATED": "1486119586", - "CI_PIPELINE_EVENT": "push", - "CI_PIPELINE_NUMBER": "6", - "CI_PIPELINE_STARTED": "1486119585", - "CI_COMMIT_AUTHOR": "bradrydzewski", - "CI_COMMIT_BRANCH": "main", - "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", - "CI_COMMIT_REF": "refs/heads/main", - "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", - "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", - "CI_REPO": "drone/envsubst", - "CI_REPO_URL": "https://github.com/drone/envsubst", - "CI_REPO_NAME": "drone/envsubst", - "CI_REPO_CLONE_URL": "https://github.com/drone/envsubst.git", - "CI_SYSTEM": "pipec", - "CI_SYSTEM_PLATFORM": "linux/amd64", - "CI_SYSTEM_URL": "https://github.com/cncd/pipec", - "CI_SYSTEM_NAME": "pipec", - "CI_WORKSPACE": "/pipeline/src", - "CI_ARCH": "linux/amd64", - "CI_BRANCH": "main", - "CI_PIPELINE_URL": "https://github.com/cncd/pipec/drone/envsubst/6", - "CI_COMMIT": "d0876d3176965f9552a611cbd56e24a9264355e6", - "CI_STEP_STARTED": "1486119585", - "CI_REPO_BRANCH": "main", - "CI_REPO_OWNER": "drone", - "CI_REPO_SCM": "git", - "PLUGIN_FALLBACK_TO": "main.tar", - "PLUGIN_FILE": "main.tar", - "PLUGIN_MOUNT": "node_modules", - "PLUGIN_PATH": "/cache", - "PLUGIN_RESTORE": "true" - }, - "volumes": ["pipeline_default:/pipeline", "/cache/drone/drone/envsubst:/cache"], - "networks": [ - { - "name": "pipeline_default", - "aliases": ["rebuild_cache"] - } - ], - "on_success": true, - "auth_config": {} - } - ] - }, - { - "name": "pipeline_stage_0", - "alias": "build", - "steps": [ - { - "name": "pipeline_step_0", - "alias": "build", - "image": "node:latest", - "working_dir": "/pipeline/src", - "environment": { - "CI": "drone", - "CI_PIPELINE_CREATED": "1486119586", - "CI_PIPELINE_EVENT": "push", - "CI_PIPELINE_NUMBER": "6", - "CI_PIPELINE_STARTED": "1486119585", - "CI_COMMIT_AUTHOR": "bradrydzewski", - "CI_COMMIT_BRANCH": "main", - "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", - "CI_COMMIT_REF": "refs/heads/main", - "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", - "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", - "CI_REPO": "drone/envsubst", - "CI_REPO_URL": "https://github.com/drone/envsubst", - "CI_REPO_NAME": "drone/envsubst", - "CI_REPO_CLONE_URL": "https://github.com/drone/envsubst.git", - "CI_SCRIPT": "CmlmIFsgLW4gIiRDSV9ORVRSQ19NQUNISU5FIiBdOyB0aGVuCmNhdCA8PEVPRiA+ICRIT01FLy5uZXRyYwptYWNoaW5lICRDSV9ORVRSQ19NQUNISU5FCmxvZ2luICRDSV9ORVRSQ19VU0VSTkFNRQpwYXNzd29yZCAkQ0lfTkVUUkNfUEFTU1dPUkQKRU9GCmNobW9kIDA2MDAgJEhPTUUvLm5ldHJjCmZpCnVuc2V0IENJX05FVFJDX1VTRVJOQU1FCnVuc2V0IENJX05FVFJDX1BBU1NXT1JECnVuc2V0IENJX1NDUklQVAp1bnNldCBEUk9ORV9ORVRSQ19VU0VSTkFNRQp1bnNldCBEUk9ORV9ORVRSQ19QQVNTV09SRAoKZWNobyArICJucG0gaW5zdGFsbCIKbnBtIGluc3RhbGwKCmVjaG8gKyAibnBtIHRlc3QiCm5wbSB0ZXN0Cgo=", - "CI_SYSTEM": "pipec", - "CI_SYSTEM_PLATFORM": "linux/amd64", - "CI_SYSTEM_URL": "https://github.com/cncd/pipec", - "CI_SYSTEM_NAME": "pipec", - "CI_WORKSPACE": "/pipeline/src", - "CI_ARCH": "linux/amd64", - "CI_BRANCH": "main", - "CI_PIPELINE_URL": "https://github.com/cncd/pipec/drone/envsubst/6", - "CI_COMMIT": "d0876d3176965f9552a611cbd56e24a9264355e6", - "CI_STEP_STARTED": "1486119585", - "CI_REPO_BRANCH": "main", - "CI_REPO_OWNER": "drone", - "CI_REPO_SCM": "git", - "HOME": "/root", - "SHELL": "/bin/sh" - }, - "entrypoint": ["/bin/sh", "-c"], - "command": ["echo $CI_SCRIPT | base64 -d | /bin/sh -e"], - "volumes": ["pipeline_default:/pipeline"], - "networks": [ - { - "name": "pipeline_default", - "aliases": ["build"] - } - ], - "on_success": true, - "auth_config": {} - } - ] - }, - { - "name": "pipeline_rebuild_cache", - "alias": "rebuild_cache", - "steps": [ - { - "name": "pipeline_rebuild_cache", - "alias": "rebuild_cache", - "image": "plugins/volume-cache:1.0.0", - "working_dir": "/pipeline/src", - "environment": { - "CI": "drone", - "CI_PIPELINE_CREATED": "1486119586", - "CI_PIPELINE_EVENT": "push", - "CI_PIPELINE_NUMBER": "6", - "CI_PIPELINE_STARTED": "1486119585", - "CI_COMMIT_AUTHOR": "bradrydzewski", - "CI_COMMIT_BRANCH": "main", - "CI_COMMIT_MESSAGE": "added a few more test cases for escaping behavior", - "CI_COMMIT_REF": "refs/heads/main", - "CI_COMMIT_SHA": "d0876d3176965f9552a611cbd56e24a9264355e6", - "CI_REMOTE_URL": "https://github.com/drone/envsubst.git", - "CI_REPO": "drone/envsubst", - "CI_REPO_URL": "https://github.com/drone/envsubst", - "CI_REPO_NAME": "drone/envsubst", - "CI_REPO_CLONE_URL": "https://github.com/drone/envsubst.git", - "CI_SYSTEM": "pipec", - "CI_SYSTEM_PLATFORM": "linux/amd64", - "CI_SYSTEM_URL": "https://github.com/cncd/pipec", - "CI_SYSTEM_NAME": "pipec", - "CI_WORKSPACE": "/pipeline/src", - "CI_ARCH": "linux/amd64", - "CI_BRANCH": "main", - "CI_PIPELINE_URL": "https://github.com/cncd/pipec/drone/envsubst/6", - "CI_COMMIT": "d0876d3176965f9552a611cbd56e24a9264355e6", - "CI_STEP_STARTED": "1486119585", - "CI_REPO_BRANCH": "main", - "CI_REPO_OWNER": "drone", - "CI_REPO_SCM": "git", - "PLUGIN_FILE": "main.tar", - "PLUGIN_FLUSH": "true", - "PLUGIN_MOUNT": "node_modules", - "PLUGIN_PATH": "/cache", - "PLUGIN_REBUILD": "true" - }, - "volumes": ["pipeline_default:/pipeline", "/cache/drone/drone/envsubst:/cache"], - "networks": [ - { - "name": "pipeline_default", - "aliases": ["rebuild_cache"] - } - ], - "on_success": true, - "auth_config": {} - } - ] - } - ], - "networks": [ - { - "name": "pipeline_default", - "driver": "bridge" - } - ], - "volumes": [ - { - "name": "pipeline_default", - "driver": "local" - } - ], - "secrets": null -} diff --git a/pipeline/samples/sample_9_cache/pipeline.yml b/pipeline/samples/sample_9_cache/pipeline.yml deleted file mode 100644 index fee6c8da5c..0000000000 --- a/pipeline/samples/sample_9_cache/pipeline.yml +++ /dev/null @@ -1,9 +0,0 @@ -cache: - - node_modules - -steps: - build: - image: node - commands: - - npm install - - npm test From 063961af6da5216a09d3fc11d8288f805229c126 Mon Sep 17 00:00:00 2001 From: qwerty287 Date: Sat, 30 Dec 2023 14:58:22 +0100 Subject: [PATCH 2/3] fix wrongly deleted file --- .changelog.yml | 45 ------------------- .gitpod.yml | 116 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 116 insertions(+), 45 deletions(-) delete mode 100644 .changelog.yml create mode 100644 .gitpod.yml diff --git a/.changelog.yml b/.changelog.yml deleted file mode 100644 index 16bee94bed..0000000000 --- a/.changelog.yml +++ /dev/null @@ -1,45 +0,0 @@ -# config for https://gitea.com/gitea/changelog to generate CHANGELOG.md - -# The full repository name -repo: woodpecker-ci/woodpecker - -# Service type (gitea or github) -service: github - -# Changelog groups and which labeled PRs to add to each group -groups: - - name: BREAKING - labels: - - breaking - - name: FEATURES - labels: - - feature - - name: SECURITY - labels: - - security - - name: BUGFIXES - labels: - - bug - - name: ENHANCEMENTS - labels: - - enhancement - - refactor - - ui - - name: TESTING - labels: - - tests - - name: TRANSLATION - labels: - - kind/translation - - name: BUILD - labels: - - kind/build - - kind/lint - - name: DOCUMENTATION - labels: - - documentation - - name: MISC - default: true - -# regex indicating which labels to skip for the changelog -skip-labels: skip-changelog|backport|regression diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 0000000000..4bbeb2c610 --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,116 @@ +tasks: + - name: Server + env: + WOODPECKER_OPEN: true + WOODPECKER_ADMIN: woodpecker + WOODPECKER_HOST: http://host.docker.internal:8000 + WOODPECKER_SECRET: '1234' + WOODPECKER_GITEA: true + WOODPECKER_DEV_WWW_PROXY: http://localhost:8010 + WOODPECKER_BACKEND_DOCKER_NETWORK: ci_default + init: | + GO_VERSION=1.21.5 + rm -rf ~/go + curl -fsSL https://dl.google.com/go/go$GO_VERSION.linux-amd64.tar.gz | tar xzs -C ~/ + go mod tidy + mkdir -p web/dist + touch web/dist/index.html + make build-server + command: | + grep "WOODPECKER_GITEA_URL=" .env \ + && sed "s,^WOODPECKER_GITEA_URL=.*,WOODPECKER_GITEA_URL=$(gp url 3000)," .env \ + || echo WOODPECKER_GITEA_URL=$(gp url 3000) >> .env + grep "WOODPECKER_DEV_OAUTH_HOST=" .env \ + && sed "s,^WOODPECKER_DEV_OAUTH_HOST=.*,WOODPECKER_DEV_OAUTH_HOST=$(gp url 8000)," .env \ + || echo WOODPECKER_DEV_OAUTH_HOST=$(gp url 8000) >> .env + gp sync-await gitea + gp sync-done woodpecker-server + go run go.woodpecker-ci.org/woodpecker/v2/cmd/server + - name: Agent + env: + WOODPECKER_SERVER: localhost:9000 + WOODPECKER_SECRET: '1234' + WOODPECKER_MAX_WORKFLOWS: 1 + WOODPECKER_HEALTHCHECK: false + command: | + gp sync-await woodpecker-server + go run go.woodpecker-ci.org/woodpecker/v2/cmd/agent + - name: Gitea + command: | + export DOCKER_COMPOSE_CMD="docker-compose -f docker-compose.gitpod.yml -p woodpecker" + export GITEA_CLI_CMD="$DOCKER_COMPOSE_CMD exec -u git gitea gitea" + $DOCKER_COMPOSE_CMD up -d + until curl --output /dev/null --silent --head --fail http://localhost:3000; do printf '.'; sleep 1; done + $GITEA_CLI_CMD admin user create --username woodpecker --password password --email woodpecker@localhost --admin + export GITEA_TOKEN=$($GITEA_CLI_CMD admin user generate-access-token -u woodpecker --scopes repo,write:application --raw) + GITEA_OAUTH_APP=$(curl -X 'POST' 'http://localhost:3000/api/v1/user/applications/oauth2' \ + -H 'accept: application/json' -H 'Content-Type: application/json' -H "Authorization: token ${GITEA_TOKEN}" \ + -d "{ \"name\": \"Woodpecker CI\", \"confidential_client\": true, \"redirect_uris\": [ \"https://8000-${GITPOD_WORKSPACE_ID}.${GITPOD_WORKSPACE_CLUSTER_HOST}/authorize\" ] }") + grep "WOODPECKER_GITEA_CLIENT=" .env \ + && sed "s,^WOODPECKER_GITEA_CLIENT=.*,WOODPECKER_GITEA_CLIENT=$(echo $GITEA_OAUTH_APP | jq -r .client_id)," .env \ + || echo WOODPECKER_GITEA_CLIENT=$(echo $GITEA_OAUTH_APP | jq -r .client_id) >> .env + grep "WOODPECKER_GITEA_SECRET=" .env \ + && sed "s,^WOODPECKER_GITEA_SECRET=.*,WOODPECKER_GITEA_SECRET=$(echo $GITEA_OAUTH_APP | jq -r .client_secret)," .env \ + || echo WOODPECKER_GITEA_SECRET=$(echo $GITEA_OAUTH_APP | jq -r .client_secret) >> .env + curl -X 'POST' \ + 'http://localhost:3000/api/v1/user/repos' \ + -H 'accept: application/json' \ + -H 'Content-Type: application/json' \ + -H "Authorization: token ${GITEA_TOKEN}" \ + -d '{ "auto_init": false, "name": "woodpecker-test", "private": true, "template": false, "trust_model": "default" }' + cd contrib/woodpecker-test-repo + git init + git checkout -b main + git remote add origin http://woodpecker:${GITEA_TOKEN}@localhost:3000/woodpecker/woodpecker-test.git + git add . + git commit -m ":tada: Initial commit" + git push -u origin main + cd ../.. + gp sync-done gitea + $DOCKER_COMPOSE_CMD logs -f + - name: App + before: | + cd web/ + init: | + pnpm install + command: | + pnpm start + - name: Docs + before: | + cd docs/ + init: | + pnpm install + pnpm build:woodpecker-plugins + command: | + pnpm start --port 4000 + +ports: + - port: 3000 + name: Gitea + onOpen: ignore + visibility: public # TODO: https://github.com/woodpecker-ci/woodpecker/issues/856 + - port: 8000 + name: Woodpecker + onOpen: notify + visibility: public # TODO: https://github.com/woodpecker-ci/woodpecker/issues/856 + - port: 9000 + name: Woodpecker GRPC + onOpen: ignore + - port: 8010 + description: Do not use! Access woodpecker on port 8000 + onOpen: ignore + - port: 4000 + name: Docs + onOpen: notify + +vscode: + extensions: + - 'golang.go' + - 'EditorConfig.EditorConfig' + - 'dbaeumer.vscode-eslint' + - 'esbenp.prettier-vscode' + - 'voorjaar.windicss-intellisense' + - 'Vue.volar' + - 'redhat.vscode-yaml' + - 'davidanson.vscode-markdownlint' + - 'streetsidesoftware.code-spell-checker' From fe80c809033ce1faa650a42e8962ff29f3758cf2 Mon Sep 17 00:00:00 2001 From: qwerty287 Date: Sat, 30 Dec 2023 15:02:27 +0100 Subject: [PATCH 3/3] also rm web prettier --- web/.prettierrc.js | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 web/.prettierrc.js diff --git a/web/.prettierrc.js b/web/.prettierrc.js deleted file mode 100644 index b651096fd4..0000000000 --- a/web/.prettierrc.js +++ /dev/null @@ -1,8 +0,0 @@ -module.exports = { - semi: true, - trailingComma: 'all', - singleQuote: true, - printWidth: 120, - tabWidth: 2, - endOfLine: 'lf', -};