Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rerun edge #276

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 18 additions & 61 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,15 +171,15 @@ jobs:
sudo apt update --allow-releaseinfo-change
sudo apt install libjpeg-dev make python3 g++ dh-autoreconf -y
- install_psh_cli
# - run:
# name: Switch to edge branch
# command: git checkout -b $EDGE_BUILD_BRANCH
# - composer_tasks__edge_packages
# - run:
# name: Push composer package updates back to GitHub
# command: |
# git add composer.*
# git commit -m "Set dof-dss packages to HEAD development for build"
- run:
name: Switch to edge branch
command: git checkout -b $EDGE_BUILD_BRANCH
- composer_tasks__edge_packages
- run:
name: Push composer package updates back to GitHub
command: |
git add composer.*
git commit -m "Set dof-dss packages to HEAD development for build"
- run:
name: Rebuild site themes
command: |
Expand All @@ -188,12 +188,12 @@ jobs:
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
cd $PROJECT_ROOT
./build-themes.sh --sites-dir $PROJECT_ROOT/project/sites
# # Push to fixed, non-integrating build branch. GitHub webhook integration will propagate this
# # to platform.sh for later steps to use.
# cd $PROJECT_ROOT
# git add *.css
# git commit -m "Theme rebuild"
# git push -f origin $EDGE_BUILD_BRANCH
# Push to fixed, non-integrating build branch. GitHub webhook integration will propagate this
# to platform.sh for later steps to use.
cd $PROJECT_ROOT
git add *.css
git commit -m "Theme rebuild"
git push -f origin $EDGE_BUILD_BRANCH

# Separate task to allow us to sync data on PSH environments, without pauses in other jobs.
sync_data:
Expand Down Expand Up @@ -281,52 +281,9 @@ jobs:

workflows:
version: 2
build-test-deploy:
jobs:
- build
- unity_base_checks:
requires:
- build
- coding_standards:
requires:
- build
- deprecated_code:
requires:
- build
- check_illegal_updates:
requires:
- build

# A nightly build of the project, using all dof-dss packages at HEAD from development branch.
nightly-edge-build:
when:
and:
- not:
equal: [ "https://github.com/dof-dss/unity_base", << pipeline.project.git_url >> ]
triggers:
- schedule:
# At 00:30 Monday to Friday
cron: "30 0 * * 1-5"
filters:
branches:
only:
- development
jobs:
- edge_build

# A nightly deploy or re-deploy of the edge site after the git branch has been created in nightly-edge-build.
nightly-edge-build-post-build-tasks:
when:
and:
- not:
equal: [ "https://github.com/dof-dss/unity_base", << pipeline.project.git_url >> ]
triggers:
- schedule:
# At 01:23 Monday to Friday
cron: "55 1 * * 1-5"
filters:
branches:
only:
- edge
jobs:
- sync_data
- sync_data:
requires:
- edge_build