Finalize repo mirroring
This commit is contained in:
@@ -46,6 +46,18 @@ resources:
|
||||
uri: git@github.com:spring-projects/sts4.git
|
||||
branch: ((branch))
|
||||
private_key: ((rsa_id))
|
||||
- name: mirror-vscode-spring-boot
|
||||
type: git
|
||||
source:
|
||||
branch: ((branch))
|
||||
private_key: ((rsa_id))
|
||||
uri: git@github.com:pivotal/sts4-vscode-spring-boot-mirror.git
|
||||
- name: mirror-vscode-concourse
|
||||
type: git
|
||||
source:
|
||||
branch: ((branch))
|
||||
private_key: ((rsa_id))
|
||||
uri: git@github.com:pivotal/sts4-vscode-concourse-mirror.git
|
||||
- name: atom-cf-manifest-yaml
|
||||
type: git
|
||||
source:
|
||||
@@ -362,10 +374,14 @@ jobs:
|
||||
params:
|
||||
text: |
|
||||
Concourse ${BUILD_PIPELINE_NAME}/${BUILD_JOB_NAME}/${BUILD_NAME} has failed!
|
||||
- put: s3-bosh-vsix-snapshot
|
||||
params:
|
||||
file: out/vscode-bosh-*.vsix
|
||||
acl: public-read
|
||||
- aggregate:
|
||||
- put: s3-bosh-vsix-snapshot
|
||||
params:
|
||||
file: out/vscode-bosh-*.vsix
|
||||
acl: public-read
|
||||
- put: mirror-vscode-concourse
|
||||
params:
|
||||
repository: sts4
|
||||
- name: build-manifest-yaml-vsix-snapshot
|
||||
plan:
|
||||
- aggregate:
|
||||
@@ -396,11 +412,6 @@ jobs:
|
||||
file: sts4/concourse/tasks/build-vsix.yml
|
||||
params:
|
||||
extension_id: vscode-spring-boot
|
||||
on_success:
|
||||
task: sync-mirror-repo
|
||||
file: sts4/concourse/tasks/sync-mirror-repo.yml
|
||||
params:
|
||||
mirror_repo: git@github.com:pivotal/sts4-vscode-spring-boot-mirror.git
|
||||
on_failure:
|
||||
put: slack-notification
|
||||
params:
|
||||
@@ -411,6 +422,9 @@ jobs:
|
||||
params:
|
||||
file: out/vscode-spring-boot-*.vsix
|
||||
acl: public-read
|
||||
- put: mirror-vscode-spring-boot
|
||||
params:
|
||||
repository: sts4
|
||||
- name: trigger-rc-build
|
||||
serial: true
|
||||
plan:
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
set -v
|
||||
workdir=`pwd`
|
||||
output=$workdir/out
|
||||
|
||||
cd sts4
|
||||
origin_url="$(git config --get remote.origin.url)"
|
||||
|
||||
cd $output
|
||||
|
||||
echo "Syncing original repo $origin_url' and mirror repo '$mirror_repo'"
|
||||
|
||||
mkdir original-repo
|
||||
# enable hidden files for * matcher
|
||||
shopt -s dotglob
|
||||
cp -a $workdir/sts4/* original-repo
|
||||
# disable hidden files for * matcher
|
||||
shopt -u dotglob
|
||||
|
||||
cd original-repo
|
||||
git config user.email "aboyko@pivotal.io"
|
||||
git config user.name "Alex Boyko"
|
||||
git remote add sync $mirror_repo
|
||||
git push sync --all
|
||||
@@ -1,13 +0,0 @@
|
||||
inputs:
|
||||
- name: sts4
|
||||
params:
|
||||
mirror_repo: https://github.com/pivotal/sts4-vscode-spring-boot-mirror
|
||||
outputs:
|
||||
- name: out
|
||||
platform: linux
|
||||
image_resource:
|
||||
type: docker-image
|
||||
source:
|
||||
repository: kdvolder/sts4-build-env
|
||||
run:
|
||||
path: sts4/concourse/tasks/sync-mirror-repo.sh
|
||||
Reference in New Issue
Block a user