Tweak publishing script to sonly publish concourse extension to marketplace

This commit is contained in:
Kris De Volder
2017-05-16 09:10:35 -07:00
parent b5244a253c
commit 2f114e9175
2 changed files with 7 additions and 83 deletions

View File

@@ -1,7 +1,12 @@
#!/bin/bash
set -e
workdir=`pwd`
vsix_files=`ls ${workdir}/s3-*/*.vsix`
#Uncomments the below to publish all vsix files in the task inputs:
#vsix_files=`ls ${workdir}/s3-*/*.vsix`
#Uncomment the below to publish only concourse vxix
vsix_files=`ls ${workdir}/s3-*/vscode-concourse-*.vsix`
for vsix_file in $vsix_files
do
@@ -11,7 +16,7 @@ do
echo ""
echo "We are runing the following command:"
echo ""
echo " vsce publish -p $vsce_token --packagePath $vsix_file"
echo " vsce publish -p vsce_token --packagePath $vsix_file"
echo ""
vsce publish -p $vsce_token --packagePath $vsix_file
done

View File

@@ -1,81 +0,0 @@
#An example for Andy
resources:
- name: version
type: semver
source:
driver: git
file: fancy-bundle
uri: git@github.com/kdvolder/versions-repo
branch: master
- name: my-git
type: git
source:
uri: git@github.com/kdvolder/test
branch: master
- name: my-bundle
type: s3
source:
bucket: my.bucket.spring.io
access_key_id: {{s3_key}}
secret_access_key: {{s3_secret}}
regexp: snapshots/fancy-bundle-(.*).zip
jobs:
- name: build-it
plan:
- get: my-git
trigger: true
- task: build-it
config:
platform: linux
inputs:
- name: my-git
outputs:
- name: target
path: my-git/target
image_resource:
type: docker-image
source:
repository: kdvolder/my-build-env
run:
path: my-git/scripts/build-it.sh
- put: my-bundle
params:
file: my-git/target/fancy-bundle-*.zip
- name: test-it
plan:
- get: my-git
passed:
- build-it
- get: my-bundle
passed:
- build-it
- task: run-tests
config:
platform: linux
inputs:
- name: my-bundle
image_resource:
type: docker-image
source:
repository: kdvolder/my-build-env
run:
path: my-git/scripts/run-tests.sh
- name: publish-it
plan:
- get: my-git
passed:
- test-it
- get: my-bundle
passed:
- test-it
- task: publish
config:
platform: linux
inputs:
- name: my-bundle
image_resource:
type: docker-image
source:
repository: kdvolder/my-build-env
run:
path: my-git/scripts/publish.sh