Skip to content

Commit 4d66a26

Browse files
committed
CI: synchronization with Artifactory
Use new public action to mirror files with Artifactory Signed-off-by: Jakub Ciesla <jakub.ciesla@nordicsemi.no>
1 parent 49d719a commit 4d66a26

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/src-mirror.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: src-mirror
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
git-ref:
7+
description: 'Branch, tag or SHA to checkout'
8+
required: true
9+
default: 'main'
10+
push:
11+
tags:
12+
- '*'
13+
pull_request:
14+
types:
15+
- opened
16+
- synchronize
17+
paths:
18+
- .github/workflows/src-mirror.yml
19+
20+
concurrency:
21+
group: src-mirror-${{ github.ref }}
22+
cancel-in-progress: true
23+
24+
jobs:
25+
26+
# Tar entire project west workspace, prune, and upload to artifact service.
27+
standard:
28+
runs-on: ubuntu-24.04-16cores
29+
steps:
30+
- name: Upload src.tar.gz
31+
uses: nrfconnect/action-src-mirror@main
32+
with:
33+
path: 'ncs-example-application'
34+
west-update-args: ''
35+
artifactory-path: >-
36+
${{ (github.ref_type != 'tag') &&
37+
format('ncs-src-mirror/internal/{0}/{1}/src.tar.gz', github.event.repository.name, github.ref_name) ||
38+
format('ncs-src-mirror/external/{0}/{1}/src.tar.gz', github.event.repository.name, github.ref_name) }}
39+
artifactory-user: ${{ secrets.COM_NORDICSEMI_FILES_USERNAME }}
40+
artifactory-pass: ${{ secrets.COM_NORDICSEMI_FILES_PASSWORD }}

0 commit comments

Comments
 (0)