Skip to content
Snippets Groups Projects
Commit 417cc0df authored by ale's avatar ale
Browse files

Use new CI templates

parent d3a80790
No related branches found
No related tags found
No related merge requests found
Pipeline #58603 passed with warnings
include: "https://git.autistici.org/ai3/build-deb/raw/master/ci-common.yml"
include:
- "https://git.autistici.org/pipelines/debian/raw/master/common.yml"
- "https://git.autistici.org/pipelines/images/test/golang/raw/master/ci.yml"
upload_pkg:buster:
variables:
REPOSITORY: liber/buster
upload_pkg:bullseye:
variables:
REPOSITORY: liber/bullseye
upload_pkg:bookworm:
variables:
REPOSITORY: liber/bookworm
test:
stage: test
image: registry.git.autistici.org/ai3/docker/test/golang:master
script:
- run-go-test ./...
artifacts:
when: always
reports:
coverage_report:
coverage_format: cobertura
path: cover.xml
junit: report.xml
REPOSITORY: liber
release:
stage: release
image: golang:1.19
image: golang:1.20
variables:
VERSION: $CI_COMMIT_TAG
script:
- mkdir liber-${VERSION}
- go build -o liber-${VERSION}/liber ./cmd/liber
- strip liber-${VERSION}/liber
- tar czf liber-${VERSION}.tar.gz liber-${VERSION}
- echo uploading liber-${VERSION}.tar.gz
- "curl --header \"JOB-TOKEN: $CI_JOB_TOKEN\" --upload-file liber-${VERSION}.tar.gz ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/liber/${VERSION}/liber-${VERSION}.tar.gz"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment