This patch adds github action for daily upload.
Signed-off-by: yelini-jeong <yelini.jeong@samsung.com>
--- /dev/null
+name: Upload package to artifactory
+description: upload packages to artifactory
+
+inputs:
+ input_path:
+ description: package path
+ required: true
+ default: /tmp/rpms
+ input_type:
+ description: package type
+ required: true
+ default: rpm
+ art_repo:
+ description: artifactory repository
+ required: true
+ art_id:
+ description: artifactory id
+ required: true
+ art_pw:
+ description: artifactory password
+ required: true
+ property:
+ description: packages' property
+ required: false
+
+runs:
+ using: composite
+ steps:
+ - run: |
+ for FILE in $(find ${{ inputs.input_path }} -name "*.${{ inputs.input_type }}"); do \
+ curl \
+ --header "X-Checksum-MD5:`md5sum $FILE | awk '{ print $1 }'`" \
+ --header "X-Checksum-Sha1:`shasum -a 1 $FILE | awk '{ print $1 }'`" \
+ -u${{ inputs.art_id }}:${{ inputs.art_pw }} \
+ -XPUT ${{ inputs.art_repo }}"/$(basename $FILE);${{ inputs.property }}" \
+ -T $FILE \
+ ;\
+ done
+ shell: bash
--- /dev/null
+name: upload package for aarch64
+
+on:
+ workflow_dispatch:
+ schedule:
+ # scheduled workflow run on the latest commit on the default or base
+ # branch.
+ - cron: '00 01 * * 0-5'
+
+env:
+ ART_REPO: https://art.sec.samsung.net/artifactory/aip_generic/NPU_SystemService
+ ART_ID: ${{ secrets.ARTIFACTORY_ID }}
+ ART_PW: ${{ secrets.ARTIFACTORY_PW }}
+
+jobs:
+ build-and-upload-aarch64:
+ runs-on: [ code-large ]
+ container:
+ image: art.sec.samsung.net/aip_docker/n2s2_docker/bionic:latest
+ # for chroot-based build system
+ options: --privileged
+
+ timeout-minutes: 60
+
+ steps:
+ - name: Get current date
+ id: date
+ run: echo "::set-output name=date::$(date +'%Y%m%d')"
+ - name: Clone your repository
+ uses: CODE-Actions/checkout@v2
+ - name: Build packages
+ uses: ./.github/actions/build-tizen
+ with:
+ arch: aarch64
+ output_path: /tmp/rpms
+ - name: Upload artifacts
+ uses: CODE-Actions/upload-artifact@v2
+ with:
+ name: built-package-${{ steps.date.outputs.date }}
+ path: /tmp/rpms
+ - name: Upload to artifactory
+ uses: ./.github/actions/upload-artifacts
+ with:
+ input_path: /tmp/rpms
+ input_type: rpm
+ art_repo: $ART_REPO/${{ steps.date.outputs.date }}/aarch64
+ art_id: $ART_ID
+ art_pw: $ART_PW
--- /dev/null
+name: upload package for armv7l
+
+on:
+ workflow_dispatch:
+ schedule:
+ # scheduled workflow run on the latest commit on the default or base
+ # branch.
+ - cron: '00 01 * * 0-5'
+
+env:
+ ART_REPO: https://art.sec.samsung.net/artifactory/aip_generic/NPU_SystemService
+ ART_ID: ${{ secrets.ARTIFACTORY_ID }}
+ ART_PW: ${{ secrets.ARTIFACTORY_PW }}
+
+jobs:
+ build-and-upload-armv7l:
+ runs-on: [ code-large ]
+ container:
+ image: art.sec.samsung.net/aip_docker/n2s2_docker/bionic:latest
+ # for chroot-based build system
+ options: --privileged
+
+ timeout-minutes: 60
+
+ steps:
+ - name: Get current date
+ id: date
+ run: echo "::set-output name=date::$(date +'%Y%m%d')"
+ - name: Clone your repository
+ uses: CODE-Actions/checkout@v2
+ - name: Build packages
+ uses: ./.github/actions/build-tizen
+ with:
+ arch: armv7l
+ output_path: /tmp/rpms
+ - name: Upload artifacts
+ uses: CODE-Actions/upload-artifact@v2
+ with:
+ name: built-package-${{ steps.date.outputs.date }}
+ path: /tmp/rpms
+ - name: Upload to artifactory
+ uses: ./.github/actions/upload-artifacts
+ with:
+ input_path: /tmp/rpms
+ input_type: rpm
+ art_repo: $ART_REPO/${{ steps.date.outputs.date }}/armv7l
+ art_id: $ART_ID
+ art_pw: $ART_PW
--- /dev/null
+name: upload package for x86_64
+
+on:
+ workflow_dispatch:
+ schedule:
+ # scheduled workflow run on the latest commit on the default or base
+ # branch.
+ - cron: '00 01 * * 0-5'
+
+env:
+ ART_REPO: https://art.sec.samsung.net/artifactory/aip_generic/NPU_SystemService
+ ART_ID: ${{ secrets.ARTIFACTORY_ID }}
+ ART_PW: ${{ secrets.ARTIFACTORY_PW }}
+
+jobs:
+ build-and-upload-x86_64:
+ runs-on: [ code-large ]
+ container:
+ image: art.sec.samsung.net/aip_docker/n2s2_docker/bionic:latest
+ # for chroot-based build system
+ options: --privileged
+
+ timeout-minutes: 60
+
+ steps:
+ - name: Get current date
+ id: date
+ run: echo "::set-output name=date::$(date +'%Y%m%d')"
+ - name: Clone your repository
+ uses: CODE-Actions/checkout@v2
+ - name: Build packages
+ uses: ./.github/actions/build-tizen
+ with:
+ arch: x86_64
+ output_path: /tmp/rpms
+ - name: Upload artifacts
+ uses: CODE-Actions/upload-artifact@v2
+ with:
+ name: built-package-${{ steps.date.outputs.date }}
+ path: /tmp/rpms
+ - name: Upload to artifactory
+ uses: ./.github/actions/upload-artifacts
+ with:
+ input_path: /tmp/rpms
+ input_type: rpm
+ art_repo: $ART_REPO/${{ steps.date.outputs.date }}/x86_64
+ art_id: $ART_ID
+ art_pw: $ART_PW
--- /dev/null
+name: upload package for pontusm
+
+on:
+ workflow_dispatch:
+ schedule:
+ # scheduled workflow run on the latest commit on the default or base
+ # branch.
+ - cron: '00 01 * * 0-5'
+
+env:
+ ART_REPO: https://art.sec.samsung.net/artifactory/aip_generic/NPU_SystemService
+ ART_ID: ${{ secrets.ARTIFACTORY_ID }}
+ ART_PW: ${{ secrets.ARTIFACTORY_PW }}
+
+jobs:
+ build-and-upload-pontusm:
+ runs-on: [ code-large ]
+ container:
+ image: art.sec.samsung.net/aip_docker/n2s2_docker/bionic:latest
+ # for chroot-based build system
+ options: --privileged
+
+ timeout-minutes: 60
+
+ steps:
+ - name: Get current date
+ id: date
+ run: echo "::set-output name=date::$(date +'%Y%m%d')"
+ - name: Clone your repository
+ uses: CODE-Actions/checkout@v2
+ - name: Build packages
+ uses: ./.github/actions/build-pontusm
+ with:
+ output_path: /tmp/rpms
+ - name: Upload artifacts
+ uses: CODE-Actions/upload-artifact@v2
+ with:
+ name: built-package-${{ steps.date.outputs.date }}
+ path: /tmp/rpms
+ - name: Upload to artifactory
+ uses: ./.github/actions/upload-artifacts
+ with:
+ input_path: /tmp/rpms
+ input_type: rpm
+ art_repo: $ART_REPO/${{ steps.date.outputs.date }}/pontusm
+ art_id: $ART_ID
+ art_pw: $ART_PW