Added gitlab-ci.yml
This commit is contained in:
parent
045ca76a51
commit
957494fed8
72
.gitlab-ci.yml
Normal file
72
.gitlab-ci.yml
Normal file
@ -0,0 +1,72 @@
|
||||
stages:
|
||||
- build
|
||||
- deploy
|
||||
|
||||
variables:
|
||||
VERSION: "0.9.3"
|
||||
|
||||
before_script:
|
||||
- env|sort
|
||||
- pwd
|
||||
|
||||
build:x86_64:
|
||||
image: ${CI_REGISTRY}/leenooks/ci-apt:x86_64
|
||||
stage: build
|
||||
script:
|
||||
- apt-get update
|
||||
- apt-get install liblua5.3-dev
|
||||
- cd galacticdynasty; dpkg-buildpackage -us -uc; cd ..
|
||||
- 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
|
||||
- apt-get install liblua5.3-dev
|
||||
- cd libcl; dpkg-buildpackage -us -uc; cd ..
|
||||
- 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
|
Reference in New Issue
Block a user