cci: add more to automate release (#916)

This commit is contained in:
dman776 2023-08-25 07:31:00 -05:00 committed by GitHub
parent cf21782f27
commit dd50d2038d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 1 deletions

View File

@ -38,7 +38,9 @@ commands:
export MY_WORKING_DIRECTORY=`pwd` export MY_WORKING_DIRECTORY=`pwd`
sed -i "s/FW_VERSION=\$(PRIVATE_BUILD_VERSION)-\$(GIT_COMMIT)/FW_VERSION=\$(PRIVATE_BUILD_VERSION)/g" ${MY_WORKING_DIRECTORY}/Makefile sed -i "s/FW_VERSION=\$(PRIVATE_BUILD_VERSION)-\$(GIT_COMMIT)/FW_VERSION=\$(PRIVATE_BUILD_VERSION)/g" ${MY_WORKING_DIRECTORY}/Makefile
sed -i "s/NoCall/<< pipeline.parameters.release_version >>/g" ${MY_WORKING_DIRECTORY}/config.mk sed -i "s/NoCall/<< pipeline.parameters.release_version >>/g" ${MY_WORKING_DIRECTORY}/config.mk
sed -i "s/snapshots/releases\/3\/23\/<< pipeline.parameters.release_version >>/g" ${MY_WORKING_DIRECTORY}/config.mk
sed -i "s/MAKE_ARGS=-j3/MAKE_ARGS=-j${DASH_J_VALUE}/g" ${MY_WORKING_DIRECTORY}/config.mk sed -i "s/MAKE_ARGS=-j3/MAKE_ARGS=-j${DASH_J_VALUE}/g" ${MY_WORKING_DIRECTORY}/config.mk
sed -i "s/develop/<< pipeline.parameters.release_version >>/g" ${MY_WORKING_DIRECTORY}/feeds.conf
cat ${MY_WORKING_DIRECTORY}/config.mk cat ${MY_WORKING_DIRECTORY}/config.mk
###################################### ######################################
@ -179,6 +181,14 @@ jobs:
name: Move packages name: Move packages
command: ssh ${SSH_USER}@${SSH_HOST} "sh -c 'mv ${TARGET_DIR}/packages ${NIGHTLY_DIR}'" command: ssh ${SSH_USER}@${SSH_HOST} "sh -c 'mv ${TARGET_DIR}/packages ${NIGHTLY_DIR}'"
process_artifacts_release:
machine:
image: ubuntu-2004:2023.02.1
steps:
- run:
name: Untar Files
command: ssh ${SSH_USER}@${SSH_HOST} "sh -c 'tar -xjf ${TARGET_DIR}/${CIRCLE_BRANCH}_${ARTIFACTS_FILE} -C ${TARGET_DIR}'"
changelog_nightly: changelog_nightly:
machine: machine:
image: ubuntu-2004:2023.02.1 image: ubuntu-2004:2023.02.1
@ -281,6 +291,16 @@ workflows:
equal: [ release_build, << pipeline.parameters.action >> ] equal: [ release_build, << pipeline.parameters.action >> ]
jobs: jobs:
- build_release - build_release
- process_artifacts_release
requires:
- process_artifacts_release
- readme_nightly:
requires:
- process_artifacts_release
- changelog_nightly:
requires:
- process_artifacts_release
- save_build_info: - save_build_info:
requires: requires:
- build_release - process_artifacts_release