Skip to content

Commit f50113a

Browse files
committed
writeDebianGitLabCI: use new template
1 parent eca1e4e commit f50113a

File tree

1 file changed

+4
-24
lines changed

1 file changed

+4
-24
lines changed

template.go

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -427,30 +427,10 @@ func writeDebianUpstreamMetadata(dir, gopkg string) error {
427427
func writeDebianGitLabCI(dir string) error {
428428
const gitlabciymlTmpl = `# auto-generated, DO NOT MODIFY.
429429
# The authoritative copy of this file lives at:
430-
# https://salsa.debian.org/go-team/ci/blob/master/config/gitlabciyml.go
431-
432-
image: stapelberg/ci2
433-
434-
test_the_archive:
435-
artifacts:
436-
paths:
437-
- before-applying-commit.json
438-
- after-applying-commit.json
439-
script:
440-
# Create an overlay to discard writes to /srv/gopath/src after the build:
441-
- "rm -rf /cache/overlay/{upper,work}"
442-
- "mkdir -p /cache/overlay/{upper,work}"
443-
- "mount -t overlay overlay -o lowerdir=/srv/gopath/src,upperdir=/cache/overlay/upper,workdir=/cache/overlay/work /srv/gopath/src"
444-
- "export GOPATH=/srv/gopath"
445-
- "export GOCACHE=/cache/go"
446-
# Build the world as-is:
447-
- "ci-build -exemptions=/var/lib/ci-build/exemptions.json > before-applying-commit.json"
448-
# Copy this package into the overlay:
449-
- "GBP_CONF_FILES=:debian/gbp.conf gbp buildpackage --git-no-pristine-tar --git-ignore-branch --git-ignore-new --git-export-dir=/tmp/export --git-no-overlay --git-tarball-dir=/nonexistant --git-cleaner=/bin/true --git-builder='dpkg-buildpackage -S -d --no-sign'"
450-
- "pgt-gopath -dsc /tmp/export/*.dsc"
451-
# Rebuild the world:
452-
- "ci-build -exemptions=/var/lib/ci-build/exemptions.json > after-applying-commit.json"
453-
- "ci-diff before-applying-commit.json after-applying-commit.json"
430+
# https://salsa.debian.org/go-team/infra/pkg-go-tools/blob/master/config/gitlabciyml.go
431+
---
432+
include:
433+
- https://salsa.debian.org/go-team/infra/pkg-go-tools/-/raw/master/pipeline/test-archive.yml
454434
`
455435

456436
f, err := os.Create(filepath.Join(dir, "debian", "gitlab-ci.yml"))

0 commit comments

Comments
 (0)