forked from vieter-v/vieter
Compare commits
2 Commits
0a74f10052
...
ffd83eeb18
| Author | SHA1 | Date |
|---|---|---|
|
|
ffd83eeb18 | |
|
|
0617c9b904 |
|
|
@ -1,9 +1,14 @@
|
|||
platform: linux/amd64
|
||||
matrix:
|
||||
PLATFORM:
|
||||
- linux/amd64
|
||||
- linux/arm64
|
||||
|
||||
platform: ${PLATFORM}
|
||||
branches: [dev]
|
||||
|
||||
pipeline:
|
||||
build:
|
||||
image: 'archlinux:base-devel'
|
||||
image: 'menci/archlinuxarm:base-devel'
|
||||
commands:
|
||||
# Update packages
|
||||
- pacman -Syu --noconfirm
|
||||
|
|
@ -17,7 +22,7 @@ pipeline:
|
|||
- makepkg -s --noconfirm --needed
|
||||
|
||||
publish:
|
||||
image: 'archlinux:base-devel'
|
||||
image: 'curlimages/curl'
|
||||
commands:
|
||||
# Publish the package
|
||||
- 'for pkg in $(ls -1 *.pkg*); do curl -XPOST -T "$pkg" -H "X-API-KEY: $VIETER_API_KEY" https://arch.r8r.be/vieter/publish; done'
|
||||
|
|
|
|||
|
|
@ -191,6 +191,7 @@ pub fn (pkg &Pkg) filename() string {
|
|||
ext := match pkg.compression {
|
||||
0 { '.tar' }
|
||||
1 { '.tar.gz' }
|
||||
6 { '.tar.xz' }
|
||||
14 { '.tar.zst' }
|
||||
else { panic("Another compression code shouldn't be possible. Faulty code: $pkg.compression") }
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue