|
| 1 | +# Generated using halfpipe cli version 0.0.0-DEV from file e2e/concourse/update-pipeline-and-tag/.halfpipe.io for team halfpipe-team |
| 2 | +jobs: |
| 3 | +- build_log_retention: |
| 4 | + minimum_succeeded_builds: 1 |
| 5 | + name: update |
| 6 | + plan: |
| 7 | + - attempts: 2 |
| 8 | + get: git |
| 9 | + timeout: 15m |
| 10 | + trigger: true |
| 11 | + - attempts: 2 |
| 12 | + config: |
| 13 | + image_resource: |
| 14 | + name: "" |
| 15 | + source: |
| 16 | + password: ((halfpipe-gcr.private_key)) |
| 17 | + registry_mirror: |
| 18 | + host: eu-mirror.gcr.io |
| 19 | + repository: eu.gcr.io/halfpipe-io/halfpipe-auto-update |
| 20 | + tag: latest |
| 21 | + username: _json_key |
| 22 | + type: registry-image |
| 23 | + inputs: |
| 24 | + - name: git |
| 25 | + params: |
| 26 | + CONCOURSE_PASSWORD: ((concourse.password)) |
| 27 | + CONCOURSE_TEAM: ((concourse.team)) |
| 28 | + CONCOURSE_URL: ((concourse.url)) |
| 29 | + CONCOURSE_USERNAME: ((concourse.username)) |
| 30 | + HALFPIPE_DOMAIN: halfpipe.io |
| 31 | + HALFPIPE_FILE_PATH: .halfpipe.io |
| 32 | + HALFPIPE_PROJECT: halfpipe-io |
| 33 | + PIPELINE_NAME: pipeline-name |
| 34 | + platform: linux |
| 35 | + run: |
| 36 | + dir: git/e2e/concourse/update-pipeline-and-tag |
| 37 | + path: update-pipeline |
| 38 | + task: update |
| 39 | + timeout: 15m |
| 40 | + - attempts: 2 |
| 41 | + params: |
| 42 | + bump: minor |
| 43 | + put: version |
| 44 | + timeout: 15m |
| 45 | + - attempts: 2 |
| 46 | + no_get: true |
| 47 | + params: |
| 48 | + only_tag: true |
| 49 | + repository: git |
| 50 | + tag: version/version |
| 51 | + tag_prefix: pipeline-name/v |
| 52 | + put: tag-git-repository |
| 53 | + resource: git |
| 54 | + timeout: 15m |
| 55 | + serial: true |
| 56 | +- build_log_retention: |
| 57 | + minimum_succeeded_builds: 1 |
| 58 | + name: test |
| 59 | + plan: |
| 60 | + - attempts: 2 |
| 61 | + in_parallel: |
| 62 | + fail_fast: true |
| 63 | + steps: |
| 64 | + - get: git |
| 65 | + passed: |
| 66 | + - update |
| 67 | + - get: version |
| 68 | + passed: |
| 69 | + - update |
| 70 | + trigger: true |
| 71 | + timeout: 15m |
| 72 | + - config: |
| 73 | + caches: |
| 74 | + - path: ../../../var/halfpipe/cache |
| 75 | + - path: ../../../halfpipe-cache |
| 76 | + image_resource: |
| 77 | + name: "" |
| 78 | + source: |
| 79 | + registry_mirror: |
| 80 | + host: eu-mirror.gcr.io |
| 81 | + repository: node |
| 82 | + tag: 9.5.0-alpine |
| 83 | + type: registry-image |
| 84 | + inputs: |
| 85 | + - name: git |
| 86 | + - name: version |
| 87 | + params: |
| 88 | + ARTIFACTORY_PASSWORD: ((artifactory.password)) |
| 89 | + ARTIFACTORY_URL: ((artifactory.url)) |
| 90 | + ARTIFACTORY_USERNAME: ((artifactory.username)) |
| 91 | + CI: "true" |
| 92 | + EE_PLATFORM_TEAM: halfpipe-team |
| 93 | + RUNNING_IN_CI: "true" |
| 94 | + platform: linux |
| 95 | + run: |
| 96 | + args: |
| 97 | + - -c |
| 98 | + - | |
| 99 | + if ! which bash > /dev/null && [ "$SUPPRESS_BASH_WARNING" != "true" ]; then |
| 100 | + echo "WARNING: Bash is not present in the docker image" |
| 101 | + echo "If your script depends on bash you will get a strange error message like:" |
| 102 | + echo " sh: yourscript.sh: command not found" |
| 103 | + echo "To fix, make sure your docker image contains bash!" |
| 104 | + echo "Or if you are sure you don't need bash you can suppress this warning by setting the environment variable \"SUPPRESS_BASH_WARNING\" to \"true\"." |
| 105 | + echo "" |
| 106 | + echo "" |
| 107 | + fi |
| 108 | +
|
| 109 | + if [ -e /etc/alpine-release ] |
| 110 | + then |
| 111 | + echo "WARNING: you are running your build in a Alpine image or one that is based on the Alpine" |
| 112 | + echo "There is a known issue where DNS resolving does not work as expected" |
| 113 | + echo "https://github.com/gliderlabs/docker-alpine/issues/255" |
| 114 | + echo "If you see any errors related to resolving hostnames the best course of action is to switch to another image" |
| 115 | + echo "we recommend debian:buster-slim as an alternative" |
| 116 | + echo "" |
| 117 | + echo "" |
| 118 | + fi |
| 119 | +
|
| 120 | + export GIT_REVISION=`cat ../../../.git/ref` |
| 121 | + export BUILD_VERSION=`cat ../../../../version/version` |
| 122 | +
|
| 123 | + ./../update-pipeline/a |
| 124 | + EXIT_STATUS=$? |
| 125 | + if [ $EXIT_STATUS != 0 ] ; then |
| 126 | + exit 1 |
| 127 | + fi |
| 128 | + dir: git/e2e/concourse/update-pipeline-and-tag |
| 129 | + path: /bin/sh |
| 130 | + task: test |
| 131 | + timeout: 1h |
| 132 | + serial: true |
| 133 | +resources: |
| 134 | +- check_every: 10m0s |
| 135 | + name: git |
| 136 | + source: |
| 137 | + branch: main |
| 138 | + private_key: ((halfpipe-github.private_key)) |
| 139 | + uri: git@github.com:springernature/halfpipe.git |
| 140 | + type: git |
| 141 | +- check_every: 24h0m0s |
| 142 | + name: version |
| 143 | + source: |
| 144 | + bucket: ((halfpipe-semver.bucket)) |
| 145 | + driver: gcs |
| 146 | + json_key: ((halfpipe-semver.private_key)) |
| 147 | + key: halfpipe-team-pipeline-name |
| 148 | + type: semver |
0 commit comments