Skip to content

Commit

Permalink
Rebase changes from main before deployment bumps
Browse files Browse the repository at this point in the history
This is done to adapt the pipeline for Cryo's PR workflow.

[#176850008]
  • Loading branch information
gbandres98 committed Jul 8, 2021
1 parent 3fd9287 commit 77ef638
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 34 deletions.
58 changes: 28 additions & 30 deletions ci/pipelines/bosh-bootloader.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ groups:
- name: misc
jobs:
- bump-bbl-docs
- bump-brew-tap
# - bump-brew-tap

resource_types:
- name: bosh-deployment
Expand Down Expand Up @@ -110,13 +110,12 @@ resources:
access_token: ((github.access_token))
drafts: false

- name: homebrew-tap
type: git
source:
uri: https://github.com/cloudfoundry/homebrew-tap.git
# uri: git@github.com:cloudfoundry/homebrew-tap.git
branch: master
# private_key: ((cf_infra_bot_github_user.private_key))
# - name: homebrew-tap
# type: git
# source:
# uri: git@github.com:cloudfoundry/homebrew-tap.git
# branch: master
# private_key: ((cf_infra_bot_github_user.private_key))

# - name: terraform
# type: github-release
Expand Down Expand Up @@ -367,7 +366,6 @@ jobs:
BBL_TEST_ENV_ID_PREFIX: bump-deployments
BBL_TEST_PACKAGES: bbl
BBL_DOWN_TIMEOUT: 20m
RUN_TEST: ssh

- name: bbl-downstream-docker-image-bump-deployments
plan:
Expand Down Expand Up @@ -1250,26 +1248,26 @@ jobs:
rebase: true
repository: bbl-docs

- name: bump-brew-tap
plan:
- in_parallel:
- get: homebrew-tap
- get: bbl-release
resource: bbl-release-official
params:
version:
tag: bbl-release/number
globs:
- bbl-*_osx
- bbl-*_linux_x86-64
- bbl-*_windows
# trigger: true
- get: bbl-ci
resource: bosh-bootloader
# - name: bump-brew-tap
# plan:
# - in_parallel:
# - get: homebrew-tap
# - get: bbl-release
# resource: bbl-release-official
# params:
# version:
# tag: bbl-release/number
# globs:
# - bbl-*_osx
# - bbl-*_linux_x86-64
# - bbl-*_windows
# # trigger: true
# - get: bbl-ci
# resource: bosh-bootloader

- task: update-brew-formula
file: bbl-ci/ci/tasks/bump-brew-tap/task.yml
# - task: update-brew-formula
# file: bbl-ci/ci/tasks/bump-brew-tap/task.yml

- put: homebrew-tap
params:
repository: updated-brew-tap/homebrew-tap
# - put: homebrew-tap
# params:
# repository: updated-brew-tap/homebrew-tap
6 changes: 2 additions & 4 deletions ci/tasks/bump-deployments/task
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@

ROOT="${PWD}"
function main() {
local latest_release_tag
latest_release_tag=$(cat "${ROOT}/bbl-release/version")

authorize_for_github
pushd "${ROOT}/bosh-bootloader" > /dev/null
git fetch --tags
git checkout -B "bump-deployments-ci" "v${latest_release_tag}"
git checkout -B "bump-deployments-ci"
git rebase main
popd > /dev/null

pushd "${ROOT}/jumpbox-deployment" > /dev/null
Expand Down

0 comments on commit 77ef638

Please sign in to comment.