Make sure go is installed on your worker -- this should be possible to do by running something like
kubectl -n <namespace> exec <worker pod> -- apt-get install -y golang-go
Suppose the following resource in pipeline p is slow to check:
- name: image
type: docker-image
source:
repository: artifactory.internal/concourse-docker/cf-mgmt
tag: '05.12.2020'
insecure_registries:
- artifactory.internal
| #!/bin/bash | |
| VERSION=$1 | |
| PIPELINE=release-$(echo $VERSION | sed 's/.$/x/') | |
| set -eo pipefail | |
| version_vid=$(fly -t ci curl /api/v1/teams/main/pipelines/$PIPELINE/resources/version/versions "filter=number:$VERSION" -- -s | | |
| jq .[0].id) | |
| shipit_build_id=$(fly -t ci curl /api/v1/teams/main/pipelines/$PIPELINE/resources/version/versions/$version_vid/output_of "" -- -s | |
shipit
on the main pipeline and profit. But we also need to create some
branches on a few repos and a patch pipeline in most cases.| #!/bin/bash | |
| # NOTE: it seems to be important that your default shell is bash, otherwise | |
| # the output of `docker-machine env default` will not be eval-able | |
| set -e | |
| /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| brew install go postgresql yarn docker docker-machine docker-compose | |
| brew install --HEAD universal-ctags/universal-ctags/universal-ctags |
| #!/bin/bash | |
| cwd=/usr/local/lib/node_modules/@octokit/rest | |
| if [ ! -d "$cwd" ]; then | |
| npm i -g @octokit/rest | |
| fi | |
| cd $cwd | |
| node -e " | |
| require('@octokit/rest')() | |
| .search | |
| .issuesAndPullRequests({ |
| text/html; lynx -dump -nolist %s; copiousoutput; need sterminal; nametemplate=%s.html |
| module Example exposing (suite) | |
| import Expect | |
| import Html.Attributes | |
| import Main | |
| import Test exposing (Test, describe, test) | |
| import Test.Html.Event as Event | |
| import Test.Html.Query as Query | |
| import Test.Html.Selector exposing (attribute, tag, text) |
| resources: | |
| - name: resource0 | |
| type: mock | |
| source: | |
| mirror_self: true | |
| force_version: version | |
| - name: resource1 | |
| type: mock | |
| source: | |
| mirror_self: true |