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-goldedplus/.gitlab-ci.yml

79 lines
1.8 KiB
YAML

stages:
- build
- deploy
variables:
VERSION: "1.1.5"
before_script:
- env|sort
- pwd
build:x86_64:
image: ${CI_REGISTRY}/leenooks/ci-apt:x86_64-buster
stage: build
script:
- apt-get update
- apt-get install -y libncurses5-dev
- git archive --format=tar HEAD |gzip -9 > ../${CI_PROJECT_NAME}_${VERSION}.orig.tar.gz
- dpkg-buildpackage -us -uc
- mkdir build
- ls -al ../
- mv ../${CI_PROJECT_NAME}*.deb build
tags:
- apt
- x86_64
only:
- debian
artifacts:
paths:
- build/*deb
expire_in: 1 week
deploy:x86_64:
stage: deploy
dependencies:
- build:x86_64
variables:
DEBARCH: amd64
script:
- reprepro.exp -- -b /apt -A ${DEBARCH} remove $(awk -F"[)(]+" '/VERSION=/ {print $2}' /etc/os-release) ${CI_PROJECT_NAME}
- reprepro.exp -- -b /apt deleteunreferenced
- reprepro.exp -- -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-buster
stage: build
script:
- apt-get update
- apt-get install -y libncurses5-dev
- git archive --format=tar HEAD |gzip -9 > ../${CI_PROJECT_NAME}_${VERSION}.orig.tar.gz
- dpkg-buildpackage -us -uc
- mkdir build
- ls -al ../
- mv ../${CI_PROJECT_NAME}*.deb build
tags:
- apt
- armv7l
only:
- debian
artifacts:
paths:
- build/*deb
expire_in: 1 week
deploy:armv7l:
stage: deploy
dependencies:
- build:armv7l
variables:
DEBARCH: armhf
script:
- reprepro.exp -- -b /apt -A ${DEBARCH} remove $(awk -F"[)(]+" '/VERSION=/ {print $2}' /etc/os-release) ${CI_PROJECT_NAME}
- reprepro.exp -- -b /apt deleteunreferenced
- reprepro.exp -- -b /apt includedeb $(awk -F"[)(]+" '/VERSION=/ {print $2}' /etc/os-release) build/${CI_PROJECT_NAME}_${VERSION}*.deb
tags:
- reprepro