feat: add changelog to released files
arcad/emissary/pipeline/head There was a failure building this commit Details

This commit is contained in:
wpetit 2023-08-25 10:20:42 -06:00
parent 9326bac792
commit 1eb3de4f16
2 changed files with 10 additions and 13 deletions

20
Jenkinsfile vendored
View File

@ -63,18 +63,14 @@ pipeline {
make gitea-release
'''
}
def currentVersion = sh(returnStdout: true, script: 'make full-version').trim()
if (currentVersion.endsWith('-dirty')) {
unstable('Could not trigger emissary-firmware build, dirty version !')
} else {
build(
job: "../emissary-firmware/${env.GIT_BRANCH}",
parameters: [
[$class: 'StringParameterValue', name: 'emissaryRelease', value: currentVersion]
],
wait: false
)
}
build(
job: "../emissary-firmware/${env.GIT_BRANCH}",
parameters: [
[$class: 'StringParameterValue', name: 'emissaryRelease', value: currentVersion]
],
wait: false
)
}
}
}

View File

@ -97,13 +97,14 @@ deploy-openwrt-agent:
scp dist/emissary-agent_linux_arm_6/emissary root@$(OPENWRT_DEVICE):/usr/bin/emissary
ssh root@$(OPENWRT_DEVICE) /etc/init.d/emissary-agent start
gitea-release: .mktools tools/gitea-release/bin/gitea-release.sh goreleaser
gitea-release: .mktools tools/gitea-release/bin/gitea-release.sh goreleaser changelog
mkdir -p .gitea-release
rm -rf .gitea-release/*
cp dist/*.tar.gz .gitea-release/
cp dist/*.apk .gitea-release/
cp dist/*.deb .gitea-release/
cp CHANGELOG.md .gitea-release/
GITEA_RELEASE_PROJECT="emissary" \
GITEA_RELEASE_ORG="arcad" \