Commit 53457c10 authored by justinz's avatar justinz
Browse files

New gitlab CI spec [ci-skip]

parent d7dc49ef
Pipeline #5679 failed with stages
in 11 seconds
---
include:
- https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/recipes/debian.yml
stages:
- provisioning
- build
- publish
- test
- upload
- https://www.opencode.net/netrunner/gitlab-ci-tools/raw/main/netrunner-default-ci.yml
variables:
# Package version can only contain numbers (0-9), and dots (.).
# Must be in the format of X.Y.Z, i.e. should match /\A\d+\.\d+\.\d+\z/ regular expresion.
# See https://docs.gitlab.com/ee/user/packages/generic_packages/#publish-a-package-file
PACKAGE_VERSION: "0-1"
ARCH: 'amd64'
LINUX_AMD64_BINARY: "${CI_PROJECT_NAME}_${PACKAGE_VERSION}_${ARCH}.deb"
PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/2353/packages/generic/${CI_PROJECT_NAME}/${PACKAGE_VERSION}/${LINUX_AMD64_BINARY}"
VENDOR: 'netrunner'
RELEASE:
description: "The Debian release to build for"
value: 'stable'
#EXTRA_REPOSITORY: http://dci.ds9.pub/netrunner main
#EXTRA_REPOSITORY_KEY: https://github.com/pangea-project/pangea-tooling/blob/master/dci/dci_apt.key
SALSA_CI_DISABLE_VERSION_BUMP: 1
SALSA_CI_DISABLE_BUILD_PACKAGE_I386: 1
provisioning-clean-git-repo:
stage: provisioning
image: $SALSA_CI_IMAGES_GBP
script: git clean -d --force
provisioning-extract-source:
extends: .provisioning-extract-source
# build-script-deps:
# stage: build
# extends: .build-script
# script:
# - |
# apt update
# apt install -yy wget
# wget --header="JOB-TOKEN: $CI_JOB_TOKEN" ${CI_API_V4_URL}/projects/2353/packages/generic/base-files-desktop/11.4/base-files_11.4_amd64.deb
# dpkg --install *.deb
.test-crossbuild-arm64:
extends: .test-crossbuild-package-arm64
allow_failure: true
reprotest:
extends: .test-reprotest
allow_failure: true
lintian:
extends: .test-lintian
allow_failure: true
autopkgtest:
extends: .test-autopkgtest
allow_failure: true
blhc:
extends: .test-blhc
allow_failure: true
piuparts:
extends: .test-piuparts
allow_failure: true
missing-breaks:
extends: .test-missing-breaks
allow_failure: true
rc-bugs:
extends: .test-rc-bugs
allow_failure: true
aptly:
extends: .publish-aptly
allow_failure: true
upload-aptly:
stage: upload
image: debian:stable
script:
- |
apt update
apt install -yy openssh-client
chmod 600 /builds/netrunner/${CI_PROJECT_NAME}.tmp/aptly_ssh_key
ls -l /builds/netrunner/${CI_PROJECT_NAME}.tmp/aptly_ssh_key
scp -o StrictHostKeyChecking=no -P 3138 -i ${aptly_ssh_key} debian/output/*.{tar.xz,deb} \
aptly@repo.netrunner.com:/mnt/volume_fra1_01/repo.netrunner.com/temp
only:
- master
allow_failure: true
upload-registry:
stage: upload
image: curlimages/curl:latest
script:
- |
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file debian/output/${LINUX_AMD64_BINARY} ${PACKAGE_REGISTRY_URL}
only:
- master
allow_failure: true
PACKAGE_VERSION: "0"
ARCH: 'all'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment