No longer using local credentials file
We rely on credhub instead.
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user