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

CI: Creating and pushing src bundles #19188

Open
wants to merge 1 commit into
base: main
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
22 changes: 22 additions & 0 deletions .github/workflows/src-mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,25 @@ jobs:
--url=$ARTIFACTORY_URL
--user=${{ secrets.COM_NORDICSEMI_FILES_USERNAME }}
--password=${{ secrets.COM_NORDICSEMI_FILES_PASSWORD }}

- name: Create and distribute release bundle
env:
ARTIFACTORY_URL: https://eu.files.nordicsemi.com
SRC_PATH: ncs-src-mirror/external/${{ github.ref_name }}
VERSION: ${{ github.ref_name }}
run: >
jfrog c add temp --interactive=false --url=$ARTIFACTORY_URL --user=${{ secrets.COM_NORDICSEMI_FILES_USERNAME }} --password=${{ secrets.COM_NORDICSEMI_FILES_PASSWORD }}
jfrog c use temp

jfrog ds release-bundle-create src-mirror "$VERSION" "$SRC_PATH/**"
if [[ "$?" != "0" ]]; then
echo "Error createing release bundle" && exit 1
fi
jfrog ds release-bundle-sign src-mirror "$VERSION"
if [[ "$?" != "0" ]]; then
echo 'Error signing release bundle' && exit 1
fi
jfrog ds release-bundle-distribute src-mirror "$VERSION" --create-repo --country-codes 'CN'
[[ "$?" != "0" ]] && echo 'Error distributing release bundle' && exit 1

jfrog c rm temp
Loading