mirror of https://github.com/aredn/aredn.git
cci: add more to automate release (#916)
This commit is contained in:
parent
cf21782f27
commit
dd50d2038d
|
@ -38,7 +38,9 @@ commands:
|
|||
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/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/develop/<< pipeline.parameters.release_version >>/g" ${MY_WORKING_DIRECTORY}/feeds.conf
|
||||
cat ${MY_WORKING_DIRECTORY}/config.mk
|
||||
|
||||
######################################
|
||||
|
@ -179,6 +181,14 @@ jobs:
|
|||
name: Move packages
|
||||
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:
|
||||
machine:
|
||||
image: ubuntu-2004:2023.02.1
|
||||
|
@ -281,6 +291,16 @@ workflows:
|
|||
equal: [ release_build, << pipeline.parameters.action >> ]
|
||||
jobs:
|
||||
- build_release
|
||||
- process_artifacts_release
|
||||
requires:
|
||||
- process_artifacts_release
|
||||
- readme_nightly:
|
||||
requires:
|
||||
- process_artifacts_release
|
||||
- changelog_nightly:
|
||||
requires:
|
||||
- process_artifacts_release
|
||||
- save_build_info:
|
||||
requires:
|
||||
- build_release
|
||||
- process_artifacts_release
|
||||
|
||||
|
|
Loading…
Reference in New Issue