diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3b807cc6e2a1b8e324e07f9e11982c9d9bebf79b..9f50dfeaf2e6813e46ffa51f3f0b07e9ca2d09a7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,38 +1,19 @@ -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 +variables: + 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"