ci: bump alpine version to get access to libmagic-static
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Glenn Y. Rolland 2024-01-03 16:47:48 +01:00
parent dc2ab7c4af
commit 3a324c8846

View file

@ -13,17 +13,17 @@ steps:
path: /_cache path: /_cache
commands: commands:
- pwd - pwd
# - | # Upgrade alpine to 3.19
# apt-get update && \ - sed -i -e 's,alpine/v3.17,alpine/v3.19,' /etc/apk/repositories
# apt-get install -y \ - apk upgrade --available && sync
# cmake g++ \ # Build
# libevent-dev libpcre3-dev \ - apk add --update file-dev libmagic-static
# libyaml-dev liblzma-dev
- apk add --update file-dev
- shards install - shards install
- shards build --production --static - shards build --production --static
- strip bin/code-preloader - strip bin/code-preloader
# Verify
- ./bin/code-preloader --version - ./bin/code-preloader --version
# Cache
- mkdir -p /_cache/bin - mkdir -p /_cache/bin
- cp -r bin/code-preloader /_cache/bin/$PACKAGE_BASENAME - cp -r bin/code-preloader /_cache/bin/$PACKAGE_BASENAME