.gitlab-ci.yml 2.68 KB
Newer Older
Eric Timmons's avatar
Eric Timmons committed
1
2
variables:
  GIT_SUBMODULE_STRATEGY: recursive
Eric Timmons's avatar
Fix CI    
Eric Timmons committed
3
  ALPINE_VERSION: "3.13"
Eric Timmons's avatar
Eric Timmons committed
4
5
6
7
8
9
10
11
12
13
14
15
  ASDF_VERSION: 3.3.4
  SBCL_VERSION: 2.1.1
  DOCKER_HUB_CI_REPO: daewok/clpm-ci

image: clfoundation/sbcl:$SBCL_VERSION-alpine$ALPINE_VERSION

stages:
  - prep

##############################################################################
# Build CI Images
##############################################################################
Eric Timmons's avatar
Eric Timmons committed
16

Eric Timmons's avatar
Eric Timmons committed
17
18
19
20
21
22
# Build the image used for making the executable.
ci-image:amd64:
  stage: prep
  image:
    name: gcr.io/kaniko-project/executor:debug
    entrypoint: [""]
23
  script:
Eric Timmons's avatar
Eric Timmons committed
24
25
26
    - mkdir -p /kaniko/.docker
    - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$DOCKER_HUB_USERNAME\",\"password\":\"$DOCKER_HUB_PASSWORD\"}}}" > /kaniko/.docker/config.json
    - /kaniko/executor --cache --cache-repo $DOCKER_HUB_CI_REPO --context $CI_PROJECT_DIR --build-arg asdf_version=$ASDF_VERSION --build-arg sbcl_version=$SBCL_VERSION --build-arg alpine_version=$ALPINE_VERSION --dockerfile $CI_PROJECT_DIR/Dockerfile.sbcl-ci --destination $DOCKER_HUB_CI_REPO:$SBCL_VERSION-alpine$ALPINE_VERSION-asdf$ASDF_VERSION-amd64
Eric Timmons's avatar
Eric Timmons committed
27

Eric Timmons's avatar
Eric Timmons committed
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# build-glibc:
#   image:
#     name: daewok/sbcl:1.5.2-debian-build
#     entrypoint: [""]
#   stage: build
#   script:
#     - apt-get update
#     - apt-get install -y libssl1.0-dev libsqlite3-dev
#     - echo "(lambda (list) (pushnew :sb-core-compression list) (pushnew :sb-dynamic-core list) (pushnew :sb-linkable-runtime list) list)" > /usr/local/src/sbcl-${SBCL_VERSION}/customize-target-features.lisp
#     - rebuild-sbcl
#     - sbcl --script scripts/build-static.lisp
#     - sbcl --script scripts/build-dynamic.lisp
#     - rm -rf build/cl-cache
#     - mv build build-glibc

# build-musl:
#   image:
#     name: daewok/sbcl:1.5.2-alpine-build
#     entrypoint: [""]
#   stage: build
#   script:
#     - apk add openssl-dev sqlite-static sqlite-dev
#     - echo "(lambda (list) (pushnew :sb-core-compression list) (pushnew :sb-dynamic-core list) (pushnew :sb-linkable-runtime list) list)" > /usr/local/src/sbcl-${SBCL_VERSION}/customize-target-features.lisp
#     - rebuild-sbcl
#     - sbcl --script scripts/build-static.lisp
#     - sbcl --script scripts/build-dynamic.lisp
#     - rm -rf build/cl-cache
#     - mv build build-musl
Eric Timmons's avatar
Eric Timmons committed
56

Eric Timmons's avatar
Eric Timmons committed
57
58
59
60
61
62
63
64
65
66
67
68
# release-glibc:
#   stage: deploy
#   variables:
#     GIT_SUBMODULE_STRATEGY: none
#   script:
#     - mv build-glibc/bin/clpm clpm
#   artifacts:
#     name: clpm-${CI_COMMIT_TAG}-linux-gnu
#     paths:
#       - clpm
#   only:
#     - tags
Eric Timmons's avatar
Eric Timmons committed
69

Eric Timmons's avatar
Eric Timmons committed
70
71
72
73
74
75
76
77
78
79
80
81
# release-musl:
#   stage: deploy
#   variables:
#     GIT_SUBMODULE_STRATEGY: none
#   script:
#     - mv build-musl/bin/clpm clpm
#   artifacts:
#     name: clpm-${CI_COMMIT_TAG}-linux-musl
#     paths:
#       - clpm
#   only:
#     - tags