Skip to content

Commit 9f49ccb

Browse files
authored
[Fix] debug build and release pipeline (#622)
[Fix] debug build and release pipeline (#622)
1 parent 3720a76 commit 9f49ccb

File tree

3 files changed

+23
-21
lines changed

3 files changed

+23
-21
lines changed

.github/workflows/build-develop.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ on:
99
push:
1010
branches:
1111
- develop
12-
- bugsplat
1312

1413
env:
1514
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)

.github/workflows/build-release.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ jobs:
174174
- name: Generate runner token
175175
id: token
176176
run: |
177-
curl -X POST -H "authorization: Bearer ${{ secrets.BOT_TOKEN }}" -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/ns1labs/pktvisor/actions/runners/registration-token -o token.json
177+
curl -X POST -H "authorization: Bearer ${{ secrets.BOT_TOKEN }}" -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/orb-community/pktvisor/actions/runners/registration-token -o token.json
178178
echo "::set-output name=runner::$(cat token.json | jq .token --raw-output )"
179179
cat token.json
180180
@@ -260,7 +260,7 @@ jobs:
260260
- name: Generate runner token
261261
id: token
262262
run: |
263-
curl -X POST -H "authorization: Bearer ${{ secrets.BOT_TOKEN }}" -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/ns1labs/pktvisor/actions/runners/registration-token -o token.json
263+
curl -X POST -H "authorization: Bearer ${{ secrets.BOT_TOKEN }}" -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/orb-community/pktvisor/actions/runners/registration-token -o token.json
264264
echo "::set-output name=runner::$(cat token.json | jq .token --raw-output )"
265265
cat token.json
266266
@@ -496,7 +496,7 @@ jobs:
496496
- name: Upload arm64 binary to latest release
497497
run: |
498498
chmod a+x ./docker/upload-gh-asset.sh
499-
./docker/upload-gh-asset.sh github_api_token=${{ secrets.BOT_TOKEN }} owner=ns1labs repo=pktvisor tag=LATEST filename=./pktvisor-arm64.zip
499+
./docker/upload-gh-asset.sh github_api_token=${{ secrets.BOT_TOKEN }} owner=orb-community repo=pktvisor tag=LATEST filename=./pktvisor-arm64.zip
500500
501501
- name: Get branch name
502502
shell: bash
@@ -549,7 +549,7 @@ jobs:
549549
- name: Build + push - pktvisor (multi-arch)
550550
id: docker_build
551551
env:
552-
IMAGE_NAME: ghcr.io/ns1labs/pktvisor
552+
IMAGE_NAME: ghcr.io/orb-community/pktvisor
553553
uses: docker/build-push-action@v3
554554
with:
555555
builder: ${{ steps.buildx.outputs.name }}
@@ -561,7 +561,7 @@ jobs:
561561

562562
- name: Load image
563563
env:
564-
IMAGE_NAME: ghcr.io/ns1labs/pktvisor
564+
IMAGE_NAME: ghcr.io/orb-community/pktvisor
565565
run: |
566566
docker load --input /tmp/arm64.tar
567567
docker image ls -a
@@ -624,7 +624,7 @@ jobs:
624624

625625
- name: Build + push - pktvisor (multi-arch)
626626
env:
627-
IMAGE_NAME: ghcr.io/ns1labs/pktvisor
627+
IMAGE_NAME: ghcr.io/orb-community/pktvisor
628628
uses: docker/build-push-action@v3
629629
with:
630630
builder: ${{ steps.buildx.outputs.name }}
@@ -636,7 +636,7 @@ jobs:
636636

637637
- name: Load image
638638
env:
639-
IMAGE_NAME: ghcr.io/ns1labs/pktvisor
639+
IMAGE_NAME: ghcr.io/orb-community/pktvisor
640640
run: |
641641
docker load --input /tmp/armv7.tar
642642
docker image ls -a
@@ -679,7 +679,7 @@ jobs:
679679
- name: Upload amd64 binary to latest release
680680
run: |
681681
chmod a+x ./docker/upload-gh-asset.sh
682-
./docker/upload-gh-asset.sh github_api_token=${{ secrets.BOT_TOKEN }} owner=ns1labs repo=pktvisor tag=LATEST filename=./pktvisor-amd64.zip
682+
./docker/upload-gh-asset.sh github_api_token=${{ secrets.BOT_TOKEN }} owner=orb-community repo=pktvisor tag=LATEST filename=./pktvisor-amd64.zip
683683
684684
- name: Get branch name
685685
shell: bash
@@ -731,7 +731,7 @@ jobs:
731731
732732
- name: Build + push - pktvisor (multi-arch)
733733
env:
734-
IMAGE_NAME: ghcr.io/ns1labs/pktvisor
734+
IMAGE_NAME: ghcr.io/orb-community/pktvisor
735735
uses: docker/build-push-action@v3
736736
with:
737737
builder: ${{ steps.buildx.outputs.name }}
@@ -743,7 +743,7 @@ jobs:
743743

744744
- name: Load image
745745
env:
746-
IMAGE_NAME: ghcr.io/ns1labs/pktvisor
746+
IMAGE_NAME: ghcr.io/orb-community/pktvisor
747747
run: |
748748
docker load --input /tmp/amd64.tar
749749
docker image ls -a
@@ -769,7 +769,7 @@ jobs:
769769
- name: Generate remove runner token
770770
id: remove-token-arm64
771771
run: |
772-
curl -X POST -H "authorization: Bearer ${{ secrets.BOT_TOKEN }}" -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/ns1labs/pktvisor/actions/runners/remove-token -o token.json
772+
curl -X POST -H "authorization: Bearer ${{ secrets.BOT_TOKEN }}" -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/orb-community/pktvisor/actions/runners/remove-token -o token.json
773773
echo "::set-output name=remove-runner::$(cat token.json | jq .token --raw-output )"
774774
cat token.json
775775
echo "TOKEN_RUNNER_ARM64=$(cat token.json | jq .token --raw-output )" >> $GITHUB_ENV
@@ -849,7 +849,7 @@ jobs:
849849
- name: Generate remove runner token
850850
id: remove-token-amd64
851851
run: |
852-
curl -X POST -H "authorization: Bearer ${{ secrets.BOT_TOKEN }}" -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/ns1labs/pktvisor/actions/runners/remove-token -o token.json
852+
curl -X POST -H "authorization: Bearer ${{ secrets.BOT_TOKEN }}" -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/orb-community/pktvisor/actions/runners/remove-token -o token.json
853853
echo "::set-output name=remove-runner::$(cat token.json | jq .token --raw-output )"
854854
cat token.json
855855
echo "TOKEN_RUNNER_AMD64=$(cat token.json | jq .token --raw-output )" >> $GITHUB_ENV
@@ -923,14 +923,14 @@ jobs:
923923

924924
- name: Create docker manifest
925925
run: |
926-
docker manifest create ghcr.io/ns1labs/pktvisor:latest \
927-
ghcr.io/ns1labs/pktvisor:release-amd64 \
928-
ghcr.io/ns1labs/pktvisor:release-armv7 \
929-
ghcr.io/ns1labs/pktvisor:release-arm64
926+
docker manifest create ghcr.io/orb-community/pktvisor:latest \
927+
ghcr.io/orb-community/pktvisor:release-amd64 \
928+
ghcr.io/orb-community/pktvisor:release-armv7 \
929+
ghcr.io/orb-community/pktvisor:release-arm64
930930
931931
- name: Push manifest to ghcr.io
932932
run: |
933-
docker manifest push ghcr.io/ns1labs/pktvisor:latest
933+
docker manifest push ghcr.io/orb-community/pktvisor:latest
934934
935935
- name: Install skopeo
936936
run: |
@@ -949,12 +949,12 @@ jobs:
949949
run: |
950950
sudo skopeo copy \
951951
--all \
952-
docker://ghcr.io/ns1labs/pktvisor:latest \
952+
docker://ghcr.io/orb-community/pktvisor:latest \
953953
docker://docker.io/ns1labs/pktvisor:latest
954954
955955
- name: Copy release version from ghcr.io to docker.io
956956
run: |
957957
sudo skopeo copy \
958958
--all \
959-
docker://ghcr.io/ns1labs/pktvisor:latest \
959+
docker://ghcr.io/orb-community/pktvisor:latest \
960960
docker://docker.io/ns1labs/pktvisor:${{ needs.package-amd64.outputs.release_version }}

.github/workflows/debug_build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ jobs:
9696
build_type: "Debug"
9797
asan: "ON"
9898
symbol_url: ${{secrets.SYMBOL_URL}}
99+
bugsplat_key: ${{secrets.BUGSPLAT_KEY}}
100+
bugsplat_symbol_url: ${{secrets.BUGSPLAT_SYMBOL_URL}}
101+
bugsplat: "true"
99102
file: "./Dockerfile"
100103

101104
- name: Build pktvisor-cli
@@ -161,7 +164,7 @@ jobs:
161164
162165
- name: Replace escape url
163166
run: |
164-
REPLACE=${{ secrets.CRASHPAD_URL }}
167+
REPLACE=${{ secrets.BUGSPLAT_CP_URL }}
165168
ESCAPED_REPLACE=$(printf '%s\n' "$REPLACE" | sed -e 's/[\/&]/\\&/g')
166169
sed -i -e "s/CP_URL/$ESCAPED_REPLACE/g" docker/run.sh
167170

0 commit comments

Comments
 (0)