09b6e818f72fd8c1c1f375b421a829b3e69e46ce
[platform/adaptation/npu/trix-engine.git] / .github / workflows / upload-packge-pontusm.yml
1 name: upload package for pontusm
2
3 on:
4   workflow_dispatch:
5   schedule:
6     # scheduled workflow run on the latest commit on the default or base
7     # branch.
8     - cron: '00 01 * * 0-5'
9
10 env:
11   ART_REPO: https://art.sec.samsung.net/artifactory/aip_generic/NPU_SystemService
12   ART_ID: ${{ secrets.ARTIFACTORY_ID }}
13   ART_PW: ${{ secrets.ARTIFACTORY_PW }}
14
15 jobs:
16   build-and-upload-pontusm:
17     runs-on: [ code-large ]
18     container:
19       image: art.sec.samsung.net/aip_docker/n2s2_docker/bionic:latest
20       # for chroot-based build system
21       options: --privileged
22
23     timeout-minutes: 60
24
25     steps:
26       - name: Get current date
27         id: date
28         run: echo "::set-output name=date::$(date +'%Y%m%d')"
29       - name: Clone your repository
30         uses: CODE-Actions/checkout@v2
31       - name: Build packages
32         uses: ./.github/actions/build-pontusm
33         with:
34           output_path: /tmp/rpms
35       - name: Upload artifacts
36         uses: CODE-Actions/upload-artifact@v2
37         with:
38           name: built-package-${{ steps.date.outputs.date }}
39           path: /tmp/rpms
40       - name: Upload to artifactory
41         uses: ./.github/actions/upload-artifacts
42         with:
43           input_path: /tmp/rpms
44           input_type: rpm
45           art_repo: $ART_REPO/${{ steps.date.outputs.date }}/pontusm
46           art_id: $ART_ID
47           art_pw: $ART_PW