Skip to content
This repository has been archived by the owner on Oct 7, 2022. It is now read-only.

Commit

Permalink
always build on deploy branch, rebased onto current branch (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhelmer authored and ci-build committed Sep 14, 2021
1 parent 9c6b341 commit 3802b50
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ jobs:
steps:
# Checkout the code as the first step.
- checkout
# Build while on the deploy branch. Note - this will only be checked in if the deploy-branch-update runs.
- run:
name: Configure git for ci-build
command: |
git config user.email "ci-build@rally-web-platform"
git config user.name "ci-build"
- run:
name: Checkout deploy branch and rebase onto current branch
command: git checkout deploy && git rebase ${CIRCLE_BRANCH}
# Next, the node orb's install-packages step will install the dependencies from a package.json.
# The orb install-packages step will also automatically cache them for faster future runs.
- node/install-packages
Expand Down Expand Up @@ -53,16 +62,6 @@ jobs:
steps:
- attach_workspace:
at: .
- run:
name: Configure git for ci-build
command: |
git config user.email "ci-build@rally-web-platform"
git config user.name "ci-build"
- run:
name: Checkout deploy branch and rebase onto master
command: |
git checkout functions/package-lock.json
git checkout deploy && git rebase master
- run:
name: Set up ssh known_hosts # https://circleci.com/docs/2.0/gh-bb-integration/
command: |
Expand All @@ -72,6 +71,7 @@ jobs:
- run:
name: Add website build output to git
command: |
git checkout functions/package-lock.json
git add -f functions/lib/ build/
- add_ssh_keys:
fingerprints:
Expand Down

0 comments on commit 3802b50

Please sign in to comment.