Skip to content

Commit 7888985

Browse files
jaci-nordiccarlescufi
authored andcommitted
CI: synchronization with Artifactory
Use new public action to mirror files with Artifactory Signed-off-by: Jakub Ciesla <[email protected]>
1 parent 180ed7c commit 7888985

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/src-mirror.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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+
# Tar entire project west workspace, prune, and upload to artifact service.
25+
jobs:
26+
standard:
27+
runs-on:
28+
- runs-on=${{ github.run_id }}
29+
- runner=16cpu-linux-x64
30+
steps:
31+
- name: Upload src.tar.gz
32+
uses: nrfconnect/action-src-mirror@main
33+
with:
34+
path: 'ncs-example-application'
35+
west-update-args: ''
36+
artifactory-path: >-
37+
${{ (github.ref_type != 'tag') &&
38+
format('ncs-src-mirror/internal/{0}/{1}/src.tar.gz', github.event.repository.name, github.ref_name) ||
39+
format('ncs-src-mirror/external/{0}/{1}/src.tar.gz', github.event.repository.name, github.ref_name) }}
40+
artifactory-user: ${{ secrets.COM_NORDICSEMI_FILES_USERNAME }}
41+
artifactory-pass: ${{ secrets.COM_NORDICSEMI_FILES_PASSWORD }}

0 commit comments

Comments
 (0)