Skip to content

Commit

Permalink
create github release tarball
Browse files Browse the repository at this point in the history
  • Loading branch information
blesswinsamuel committed Jan 12, 2024
1 parent abefd00 commit 6106a8f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
target: aarch64-unknown-linux-gnu
args: "--locked --release"
strip: true

- uses: blesswinsamuel/github-actions/docker-build-and-push@main
with:
checkout: false
Expand All @@ -33,3 +34,17 @@ jobs:
telegram-chat-id: ${{ secrets.TELEGRAM_CHAT_ID }}
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
docker-build-platforms: linux/arm64

- name: Create release tarball
if: ${{ startsWith(github.ref, 'refs/tags/') }}
run: |
docker run --rm --entrypoint cat docker.io/${{ github.repository }}:${{ github.ref_name }} /router-monitor > router-monitor
chmod +x router-monitor
tar czf router-monitor-aarch64-linux.tar.gz router-monitor
- name: Create github release
id: create_release
uses: ncipollo/release-action@v1
if: ${{ startsWith(github.ref, 'refs/tags/') }}
with:
artifacts: router-monitor-aarch64-linux.tar.gz

0 comments on commit 6106a8f

Please sign in to comment.