From 2026958466419cef704b850778e2453f6a4afd36 Mon Sep 17 00:00:00 2001 From: finn Date: Fri, 19 Feb 2021 13:51:47 -0800 Subject: [PATCH] Add freebsd-cross-build image --- .gitlab-ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ba6059b..de0a5bb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -30,6 +30,20 @@ signal-server: - echo "docker pull ${CI_REGISTRY_IMAGE}/signal-server:${VERSION}" allow_failure: true +freebsd-cross-build: + image: docker:20.10.0 + stage: build + script: + - apk add git + - git clone https://github.com/wezm/freebsd-cross-build.git + - cd freebsd-cross-build + - VERSION=$(git rev-parse --short=8 HEAD) + - docker login -u gitlab-ci-token -p ${CI_JOB_TOKEN} ${CI_REGISTRY} + - docker build -t ${CI_REGISTRY_IMAGE}/${CI_JOB_NAME}:${VERSION} . + - docker push ${CI_REGISTRY_IMAGE}/${CI_JOB_NAME}:${VERSION} + - if [[ "${CI_COMMIT_REF_SLUG}" == "main" ]]; then docker tag ${CI_REGISTRY_IMAGE}/${CI_JOB_NAME}:${VERSION} ${CI_REGISTRY_IMAGE}/${CI_JOB_NAME}:latest && docker push ${CI_REGISTRY_IMAGE}/${CI_JOB_NAME}:latest; fi + - echo "docker pull ${CI_REGISTRY_IMAGE}/${CI_JOB_NAME}:${VERSION}" + test-helper: <<: *build variables: