Skip to content

Commit

Permalink
Merge pull request #186 from haochenhu233/master
Browse files Browse the repository at this point in the history
upload shield 8.8.1 blob and re-write the pipeline.yml for jobs shipit and testflight
  • Loading branch information
xiujiao authored Jun 27, 2022
2 parents 8992906 + e42a611 commit 5a40ae2
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 94 deletions.
171 changes: 78 additions & 93 deletions ci/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,38 +79,32 @@ jobs:
public: true
serial: true
plan:
- name: main
do:
- name: get
in_parallel:
- { get: git, trigger: true }
- name: testflights
in_parallel:
- name: testflight
task: testflight
config:
platform: linux
image_resource:
type: docker-image
source:
repository: (( grab meta.image.name ))
tag: (( grab meta.image.tag ))
inputs:
- { name: git }
run:
path: ./git/ci/scripts/testflight
args: []
params:
REPO_ROOT: git
BOSH_ENVIRONMENT: (( grab meta.bosh-lite.target ))
BOSH_CA_CERT: (( grab meta.bosh-lite.cacert ))
BOSH_CLIENT: (( grab meta.bosh-lite.username ))
BOSH_CLIENT_SECRET: (( grab meta.bosh-lite.password ))
BOSH_DEPLOYMENT: (( grab meta.bosh-lite.deployment ))
TEST_ERRANDS: (( grab meta.test-errands || meta.test-errand || ~ ))
AWS_ACCESS_KEY: (( grab meta.aws.access_key ))
AWS_SECRET_KEY: (( grab meta.aws.secret_key ))
MANIFEST_PATH: (( grab meta.manifest.path ))
- in_parallel:
- { get: git, trigger: true }
- task: testflight
config:
platform: linux
image_resource:
type: docker-image
source:
repository: (( grab meta.image.name ))
tag: (( grab meta.image.tag ))
inputs:
- { name: git }
run:
path: ./git/ci/scripts/testflight
args: []
params:
REPO_ROOT: git
BOSH_ENVIRONMENT: (( grab meta.bosh-lite.target ))
BOSH_CA_CERT: (( grab meta.bosh-lite.cacert ))
BOSH_CLIENT: (( grab meta.bosh-lite.username ))
BOSH_CLIENT_SECRET: (( grab meta.bosh-lite.password ))
BOSH_DEPLOYMENT: (( grab meta.bosh-lite.deployment ))
TEST_ERRAND: (( grab meta.test-errands || meta.test-errand || ~ ))
AWS_ACCESS_KEY: (( grab meta.aws.access_key ))
AWS_SECRET_KEY: (( grab meta.aws.secret_key ))
MANIFEST_PATH: (( grab meta.manifest.path ))
on_success:
put: notify
params:
Expand Down Expand Up @@ -249,69 +243,60 @@ jobs:
public: true
serial: true
plan:
- do:
- name: inputs
in_parallel:
- { get: version, passed: [rc], params: {bump: final} }
- { get: git, passed: [rc] }
- name: release
task: release
config:
platform: linux
image_resource:
type: docker-image
source:
repository: (( grab meta.image.name ))
tag: (( grab meta.image.tag ))
inputs:
- name: version
- name: git
outputs:
- name: gh
- name: pushme
- name: notifications
run:
path: ./git/ci/scripts/shipit
args: []
params:
REPO_ROOT: git
VERSION_FROM: version/number
RELEASE_ROOT: gh
REPO_OUT: pushme
BRANCH: (( grab meta.github.branch ))
GITHUB_OWNER: (( grab meta.github.owner ))
GIT_EMAIL: (( grab meta.git.email ))
GIT_NAME: (( grab meta.git.name ))
AWS_ACCESS_KEY: (( grab meta.aws.access_key ))
AWS_SECRET_KEY: (( grab meta.aws.secret_key ))

- name: upload-git
put: git
params:
rebase: true
repository: pushme/git
- name: tarball
put: s3-tarball
params:
file: (( concat "gh/artifacts/" meta.name "-*.tgz" ))
- name: github-release
put: github
- in_parallel:
- { get: version, passed: [rc], params: {bump: final} }
- { get: git, passed: [rc] }
- task: release
config:
platform: linux
image_resource:
type: docker-image
source:
repository: (( grab meta.image.name ))
tag: (( grab meta.image.tag ))
inputs:
- name: version
- name: git
outputs:
- name: gh
- name: pushme
- name: notifications
run:
path: ./git/ci/scripts/shipit
args: []
params:
name: gh/name
tag: gh/tag
body: gh/notes.md
globs: [gh/artifacts/*]
- name: version-bump
put: version
REPO_ROOT: git
VERSION_FROM: version/number
RELEASE_ROOT: gh
REPO_OUT: pushme
BRANCH: (( grab meta.github.branch ))
GITHUB_OWNER: (( grab meta.github.owner ))
GIT_EMAIL: (( grab meta.git.email ))
GIT_NAME: (( grab meta.git.name ))
AWS_ACCESS_KEY: (( grab meta.aws.access_key ))
AWS_SECRET_KEY: (( grab meta.aws.secret_key ))
- put: git
params:
rebase: true
repository: pushme/git
- put: s3-tarball
params:
file: (( concat "gh/artifacts/" meta.name "-*.tgz" ))
- put: github
params:
name: gh/name
tag: gh/tag
body: gh/notes.md
globs: [gh/artifacts/*]
- put: version
params:
bump: patch
- in_parallel:
- put: notify
params:
bump: patch
- name: notify
in_parallel:
- put: notify
params:
method: announce
file: notifications/message
link: (( concat meta.github.uri "/releases" ))
method: announce
file: notifications/message
link: (( concat meta.github.uri "/releases" ))

on_success:
put: notify
Expand Down
4 changes: 3 additions & 1 deletion ci/release_notes.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

# shield
- upload new shield blob


- Bumped shield to v8.8.1

0 comments on commit 5a40ae2

Please sign in to comment.