on: workflow_dispatch
env:
- ART_REPO: https://art.sec.samsung.net/artifactory/aip_debian
- ART_ID: ${{ secrets.ARTIFACTORY_ID }}
- ART_PW: ${{ secrets.ARTIFACTORY_PW }}
+ BART_REPO: https://bart.sec.samsung.net/artifactory/aip-debian-local
+ BART_ID: ${{ secrets.BART_ID }}
+ BART_PW: ${{ secrets.BART_PW }}
jobs:
upload-bionic:
with:
name: debian packages for Bionic
path: npu-engine*.deb
- - name: Upload packages to Artifactory
- shell: bash
- run: |
- for FILE in `find . -name "npu-engine*.deb" -type f -exec basename {} \;`; do \
- curl \
- --header "X-Checksum-MD5:`md5sum $FILE | awk '{ print $1 }'`" \
- --header "X-Checksum-Sha1:`shasum -a 1 $FILE | awk '{ print $1 }'`" \
- -u$ART_ID:$ART_PW \
- -XPUT "$ART_REPO/pool/$DISTRO/$FILE;deb.distribution=$DISTRO;deb.component=universe;deb.architecture=amd64" \
- -T $FILE \
- ;\
- done
- env:
- DISTRO: bionic-nightly
+ - name: Upload to artifactory
+ uses: ./.github/actions/upload-artifacts
+ with:
+ input_path: .
+ input_type: deb
+ art_repo: $BART_REPO/pool/bionic-nightly
+ art_id: $BART_ID
+ art_pw: $BART_PW
upload-focal:
# CODE-hosted runner
runs-on: [ code-medium ]
- container: art.sec.samsung.net/aip_docker/n2s2_docker/focal:latest
+ container:
+ image: aip-docker-local.bart.sec.samsung.net/n2s2_docker/focal:latest
+ # for chroot-based build system
+ options: --privileged
+ credentials:
+ username: ${{ secrets.BART_ID }}
+ password : ${{ secrets.BART_PW }}
timeout-minutes: 30
steps:
with:
name: debian packages for Focal
path: npu-engine*.deb
- - name: Upload packages to Artifactory
- shell: bash
- run: |
- for FILE in `find . -name "npu-engine*.deb" -type f -exec basename {} \;`; do \
- curl \
- --header "X-Checksum-MD5:`md5sum $FILE | awk '{ print $1 }'`" \
- --header "X-Checksum-Sha1:`shasum -a 1 $FILE | awk '{ print $1 }'`" \
- -u$ART_ID:$ART_PW \
- -XPUT "$ART_REPO/pool/$DISTRO/$FILE;deb.distribution=$DISTRO;deb.component=universe;deb.architecture=amd64" \
- -T $FILE \
- ;\
- done
- env:
- DISTRO: focal-nightly
+ - name: Upload to artifactory
+ uses: ./.github/actions/upload-artifacts
+ with:
+ input_path: .
+ input_type: deb
+ art_repo: $BART_REPO/pool/focal-nightly
+ art_id: $BART_ID
+ art_pw: $BART_PW