1
0
Fork 0

Compress artifacts

This commit is contained in:
Michał Rudowicz 2024-02-11 14:49:34 +01:00
parent 349fe504ae
commit efbd8e882c
1 changed files with 6 additions and 5 deletions

View File

@ -2,6 +2,8 @@ image: alpine/latest
packages: packages:
- go - go
- python3-dev - python3-dev
- tar
- xz
tasks: tasks:
- go-get: | - go-get: |
cd hswro-alarm-bot cd hswro-alarm-bot
@ -31,9 +33,8 @@ tasks:
- build-arm8: | - build-arm8: |
cd hswro-alarm-bot cd hswro-alarm-bot
env GOOS=linux GOARCH=arm64 go build -o alarm_bot.arm8 env GOOS=linux GOARCH=arm64 go build -o alarm_bot.arm8
- compress: |
cd hswro-alarm-bot
tar cJvf alarm_bot.tar.xz alarm_bot.x86-64 alarm_bot.arm5 alarm_bot.arm6 alarm_bot.arm7 alarm_bot.arm8
artifacts: artifacts:
- hswro-alarm-bot/alarm_bot.x86-64 - hswro-alarm-bot/alarm_bot.tar.xz
- hswro-alarm-bot/alarm_bot.arm5
- hswro-alarm-bot/alarm_bot.arm6
- hswro-alarm-bot/alarm_bot.arm7
- hswro-alarm-bot/alarm_bot.arm8