This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
deb-galacticdynasty/.gitlab-ci.yml

73 lines
1.5 KiB
YAML
Raw Permalink Normal View History

2019-01-28 10:35:27 +00:00
stages:
- build
- deploy
variables:
2019-05-08 12:57:11 +00:00
VERSION: "0.9.8"
2019-01-28 10:35:27 +00:00
before_script:
- env|sort
- pwd
build:x86_64:
image: ${CI_REGISTRY}/leenooks/ci-apt:x86_64
stage: build
script:
- apt-get update
2019-01-28 10:39:13 +00:00
- apt-get install -y liblua5.3-dev libsqlite3-dev
2019-01-28 10:47:43 +00:00
- cd galacticdynasty; tar xzf ../${CI_PROJECT_NAME}_${VERSION}*.orig.tar.gz && dpkg-buildpackage -us -uc; cd ..
2019-01-28 10:35:27 +00:00
- mkdir build
- ls -al ./
- mv ./${CI_PROJECT_NAME}*.deb ./build/
tags:
- apt
- x86_64
only:
- master
artifacts:
paths:
- build/*deb
expire_in: 1 week
deploy:x86_64:
stage: deploy
dependencies:
- build:x86_64
only:
- master
script:
- reprepro -b /apt includedeb $(awk -F"[)(]+" '/VERSION=/ {print $2}' /etc/os-release) build/${CI_PROJECT_NAME}_${VERSION}*.deb
tags:
- reprepro
build:armv7l:
image: ${CI_REGISTRY}/leenooks/ci-apt:armv7l
stage: build
script:
- apt-get update
2019-01-28 10:39:13 +00:00
- apt-get install -y liblua5.3-dev libsqlite3-dev
2019-01-28 10:47:43 +00:00
- cd galacticdynasty; tar xzf ../${CI_PROJECT_NAME}_${VERSION}*.orig.tar.gz && dpkg-buildpackage -us -uc; cd ..
2019-01-28 10:35:27 +00:00
- mkdir build
- ls -al ./
- mv ./${CI_PROJECT_NAME}*.deb ./build/
tags:
- apt
- armv7l
only:
- master
artifacts:
paths:
- build/*deb
expire_in: 1 week
deploy:armv7l:
stage: deploy
dependencies:
- build:armv7l
only:
- master
script:
- reprepro -b /apt includedeb $(awk -F"[)(]+" '/VERSION=/ {print $2}' /etc/os-release) build/${CI_PROJECT_NAME}_${VERSION}*.deb
tags:
- reprepro