No longer using local credentials file

We rely on credhub instead.
This commit is contained in:
Kris De Volder
2019-04-01 11:59:54 -07:00
parent dc5b47d9ed
commit 5789909036
4 changed files with 13 additions and 1017 deletions

View File

@@ -20,10 +20,14 @@ jobs:
- get: jvm-launch-utils-git
trigger: true
- get: tasks
- task: publish
file: tasks/concourse/tasks/npm-publish.yml
input_mapping:
sources_repo: jvm-launch-utils-git
params:
npm_token: ((npm_token))
sources_dir: nodejs-packages/jvm-launch-utils
- task: make-noise
config:
platform: linux
image_resource:
type: docker-image
source:
repository: ubuntu:18.04
run:
path: echo
args:
- "Hello world!"

File diff suppressed because it is too large Load Diff

View File

@@ -4,6 +4,5 @@ branch=`git rev-parse --abbrev-ref HEAD`
fly -t tools set-pipeline \
--var "branch=${branch}" \
--load-vars-from ${HOME}/.sts4-concourse-credentials.yml \
-p "sts4-experimental-${branch}" \
-c experimental-pipeline.yml

View File

@@ -11,7 +11,7 @@ def replace(infile, outfile, findword, replaceword):
branch = os.popen("git rev-parse --abbrev-ref HEAD").read().strip()
if branch == 'master':
os.system('fly -t tools set-pipeline --load-vars-from ${HOME}/git/sts4-concourse-build-credentials/.sts4-concourse-credentials.yml '+
os.system('fly -t tools set-pipeline '+
' --var "branch=' + branch + '" ' +
' -p sts4-'+ branch +' -c pipeline.yml')
else:
@@ -19,7 +19,7 @@ else:
replace("pipeline.yml", "pipeline-"+branch+".yml", "snapshot", branch)
with open(fname, 'r') as fin:
print fin.read()
cmd = ('fly -t tools set-pipeline --load-vars-from ${HOME}/git/sts4-concourse-build-credentials/.sts4-concourse-credentials.yml ' +
cmd = ('fly -t tools set-pipeline ' +
'--var "branch=' + branch + '" ' + '-p sts4-' +branch+' -c '+fname)
print cmd
os.system(cmd)