Skip to content

Commit

Permalink
Test CI build for main_rebase branch content
Browse files Browse the repository at this point in the history
  • Loading branch information
jnippula committed Oct 5, 2023
1 parent d0a163b commit 521dfab
Showing 1 changed file with 1 addition and 46 deletions.
47 changes: 1 addition & 46 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: main

on:
push:
branches: [ main ]
branches: [ main_rebase_test_build ]
pull_request:
branches: [ main ]

Expand All @@ -21,49 +21,4 @@ jobs:
pushd PX4-msgs
./build.sh ../bin/
popd
- name: Upload build
uses: actions/upload-artifact@v2
with:
name: px4_msgs
path: bin/*.deb
retention-days: 1
artifactory:
runs-on: ubuntu-latest
needs: tii-px4-msgs-deb
if: github.event_name == 'push'
steps:
- name: Download builds
uses: actions/download-artifact@v2
with:
name: px4_msgs
path: bin
- uses: jfrog/setup-jfrog-cli@v2
env:
JF_ARTIFACTORY_1: ${{ secrets.JFROG_EU_SAAS_TOKEN }}
- name: Upload to Artifactory
env:
ARTIFACTORY_REPO: ssrc-deb-public-local
DISTRIBUTION: jammy
COMPONENT: fog-sw
ARCHITECTURE: amd64
BUILD_NAME: px4-msgs
CI: true
if: github.event_name == 'push'
run: |
set -exu
jfrog rt ping
for pkg in bin/*.deb
do
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"
done
jfrog rt build-publish "$BUILD_NAME" "$GITHUB_SHA"
jfrog rt bpr "$BUILD_NAME" "$GITHUB_SHA" "$ARTIFACTORY_REPO" \
--status dev \
--comment "development build"

0 comments on commit 521dfab

Please sign in to comment.