Skip to content

Fix CI: Disable workflow + update SSRC repo + Use MITM proxy in apt #1078

Fix CI: Disable workflow + update SSRC repo + Use MITM proxy in apt

Fix CI: Disable workflow + update SSRC repo + Use MITM proxy in apt #1078

Workflow file for this run

name: main
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
tii-deb-build:
runs-on: ubuntu-latest
strategy:
matrix:
ros2_distro: [ humble ]
steps:
- name: Checkout mesh_com
uses: actions/checkout@v2
with:
path: mesh_com
- name: Run mesh_com docker build
env:
ROS: 1
ROS_DISTRO: ${{ matrix.ros2_distro }}
PACKAGE_NAME: mesh_com
ARTIFACTORY_CLOUD_TOKEN: ${{ secrets.ARTIFACTORY_CLOUD_TOKEN }}
run: |
set -eux
mkdir bin
pushd mesh_com
./build.sh ../bin/
popd
- uses: jfrog/setup-jfrog-cli@v4
env:
JF_URL: https://artifactory.ssrcdevops.tii.ae
JF_ACCESS_TOKEN: ${{ secrets.ARTIFACTORY_CLOUD_TOKEN }}
- name: Upload to Artifactory
env:
ARTIFACTORY_REPO: debian-public-local
DISTRIBUTION: focal
COMPONENT: fog-sw
ARCHITECTURE: amd64
BUILD_NAME: mesh-com
CI: true
if: github.event_name == 'push'
run: |
set -exu
jfrog rt ping
pkg=$(find bin -name 'ros-${{ matrix.ros2_distro }}-mesh-com*.deb')
pkg_name=$(basename $pkg)
jfrog rt u --deb "$DISTRIBUTION/$COMPONENT/$ARCHITECTURE" \
--target-props COMMIT="$GITHUB_SHA" \
--build-name "$BUILD_NAME" \
--build-number "$GITHUB_SHA" \
"$pkg" \
"$ARTIFACTORY_REPO/$pkg_name"
jfrog rt build-publish "$BUILD_NAME" "$GITHUB_SHA"
jfrog rt bpr "$BUILD_NAME" "$GITHUB_SHA" "$ARTIFACTORY_REPO" \
--status dev \
--comment "development build"