Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: ozkanonur <[email protected]>
  • Loading branch information
onur-ozkan committed Aug 6, 2023
1 parent 750cea0 commit bb2e067
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 17 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,8 @@ jobs:
with:
ssh-private-key: ${{ secrets.REPOSITORY_INDEX_SSH }}

- name: install b2 (for linux-amd64-default branch)
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/linux-amd64-default'
run: |
sudo apt-get update -y
sudo apt-get install -y backblaze-b2
- name: build the package (for linux-amd64-default branch)
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/linux-amd64-default'
# if: github.event_name != 'pull_request' && github.ref == 'refs/heads/linux-amd64-default'
env:
GH_TOKEN: ${{ secrets.REPOSITORY_INDEX_TOKEN }}
B2_ACCOUNT_ID: ${{ secrets.B2_ACCOUNT_ID }}
B2_APPLICATION_KEY: ${{ secrets.B2_APPLICATION_KEY }}
SSH_PRIVATE_KEY: ${{ secrets.PACKAGE_SERVER_SSH }}
run: ./ci/build FROM_DEFAULT_BRANCH
1 change: 1 addition & 0 deletions builds/which/2.21.0/stage0/build
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
make

strip ./which

13 changes: 6 additions & 7 deletions ci/push
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,12 @@ git checkout -b $index_patch

cp ../$index_patch ./patches/$index_patch

git add ./patches/$index_patch
git commit -m "new index: [$index_patch] created for pkg: [$pkg]"
git push --set-upstream origin $index_patch
gh pr create -B linux-amd64-default -H $index_patch --title "new index: [$index_patch] created for pkg: [$pkg]" --body '--autogenerated PR--'
# git add ./patches/$index_patch
# git commit -m "new index: [$index_patch] created for pkg: [$pkg]"
# git push --set-upstream origin $index_patch
# gh pr create -B linux-amd64-default -H $index_patch --title "new index: [$index_patch] created for pkg: [$pkg]" --body '--autogenerated PR--'

cd ..

# push pkg to b2
backblaze-b2 authorize-account $B2_ACCOUNT_ID $B2_APPLICATION_KEY
backblaze-b2 upload-file linux-amd64-default $pkg packages/$pkg
# push to package server
scp -P 22 $pkg [email protected]:/home/packages

0 comments on commit bb2e067

Please sign in to comment.