.gitlab-ci.yml 1.74 KB
Newer Older
Eric Timmons's avatar
Eric Timmons committed
1
image:
Eric Timmons's avatar
Eric Timmons committed
2
  name: clfoundation/sbcl:alpine3.12
Eric Timmons's avatar
Eric Timmons committed
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38

variables:
  CLPM_SIGNING_KEY: 10327DE761AB977333B1AD7629932AC49F3044CE
  CLPM_VERSION: "0.3.5"

pages:
  stage: deploy
  script:
    - export CLPM_CACHE_DIR="$(pwd)/.clpm/cache"
    - apk add --no-cache curl gnupg rsync
    - curl "https://files.clpm.dev/clpm/clpm-amd64-linux-musl-v$CLPM_VERSION.tar.gz" > "/tmp/clpm-amd64-linux-musl-v$CLPM_VERSION.tar.gz"
    - curl "https://files.clpm.dev/clpm/clpm-v$CLPM_VERSION.DIGESTS.asc" > "/tmp/clpm-v$CLPM_VERSION.DIGESTS.asc"
    - |
      gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$CLPM_SIGNING_KEY" || \
      gpg --batch --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys "$CLPM_SIGNING_KEY" || \
      gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$CLPM_SIGNING_KEY" || \
      gpg --batch --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys "$CLPM_SIGNING_KEY" || \
      gpg --batch --keyserver pgp.mit.edu --recv-keys "$CLPM_SIGNING_KEY"
    - gpg --batch --verify "/tmp/clpm-v$CLPM_VERSION.DIGESTS.asc"
    - gpg --batch --decrypt "/tmp/clpm-v$CLPM_VERSION.DIGESTS.asc" > "/tmp/clpm-v$CLPM_VERSION.DIGESTS"
    - grep clpm-amd64-linux-musl-v$CLPM_VERSION.tar.gz "/tmp/clpm-v$CLPM_VERSION.DIGESTS" > /tmp/digests.txt
    - (cd /tmp && sha512sum -c /tmp/digests.txt)
    - (cd /tmp && tar xf "clpm-amd64-linux-musl-v$CLPM_VERSION.tar.gz" && cd "clpm-v$CLPM_VERSION" && sh install.sh)
    - clpm version -V
    - clpm bundle install
    - clpm bundle exec -- sbcl --disable-debugger --load ./scripts/coleslaw --quit -- stage
    - clpm bundle exec -- sbcl --disable-debugger --load ./scripts/coleslaw --quit -- deploy
  cache:
    paths:
      - .clpm/cache
  artifacts:
    paths:
      - public
    expire_in: 1 week
  only:
    - master