webmusic/.gitlab-ci.yml

22 lines
1.1 KiB
YAML
Raw Normal View History

2019-08-14 00:17:22 +02:00
# http://docs.gitlab.com/ce/ci/docker/using_docker_build.html#using-the-gitlab-container-registry
# The docker tag is the first 6 letters of the Git commit id
job_build_dotnet:
stage: build
image: archlinux/base:latest
variables:
GIT_SUBMODULE_STRATEGY: recursive
script:
2019-12-07 00:36:47 +01:00
- pacman-key --init
- pacman-key --recv-keys 3FABB87C7C9F7E5FF2B6CB7B11A7E7E4DB9351DE
- pacman-key --lsign-key 3FABB87C7C9F7E5FF2B6CB7B11A7E7E4DB9351DE
2020-03-22 15:40:24 +01:00
- bash -c "echo -e '"'[zotancc]\nServer = https://arch.prod.zotan.network/zotancc/os/$arch'"' >> /etc/pacman.conf"
2019-12-07 00:36:47 +01:00
- pacman -Syu --needed dotnet-sdk-bin --noconfirm
2019-08-14 00:17:22 +02:00
- curl -Lo warp-packer https://github.com/dgiagio/warp/releases/download/v0.3.0/linux-x64.warp-packer && chmod +x warp-packer
- dotnet publish -c Release -r linux-x64
2019-12-07 00:36:47 +01:00
- ./warp-packer --arch linux-x64 --input_dir bin/Release/netcoreapp3.1/linux-x64/publish --exec webmusic --output webmusic.linux.run
- chmod +x webmusic.linux.run
2019-08-14 00:17:22 +02:00
artifacts:
paths:
- webmusic.linux.run