File: .gitlab-ci.yml

package info (click to toggle)
android-platform-external-libunwind 8.1.0%2Br23-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,264 kB
  • sloc: ansic: 34,068; sh: 6,931; asm: 1,910; makefile: 841; cpp: 137
file content (38 lines) | stat: -rw-r--r-- 1,281 bytes parent folder | download
1
2
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
image: registry.gitlab.com/eighthave/ci-image-git-buildpackage:latest

build:
  artifacts:
    paths:
    - "*.deb"
    expire_in: 1 day
  script:
    # copy it into place to be saved as an artifact
    - cp ../*.deb .
    - autopkgtest ../*.changes -- null

aptly:
  image: debian:testing
  stage: deploy
  script:
    - pwd
    - ls -la ..
    - apt-get -qy install aptly
    - aptly repo create autobuilt || true
    # could be a sourceful archive if we had the .orig.tar.gz always in the
    # .changes -- withou that, we can't build a source archive anyway, and i'm
    # not sure we should (the git history is the source here)
    # # introducing new distribution "autobuilt"; "experimental" might be just as good.
    # - aptly repo include --accept-unsigned --ignore-signatures --repo autobuilt ../*.changes
    - aptly repo add autobuilt ../*.deb
    - aptly publish repo --skip-signing --distribution autobuilt --architectures all,amd64 autobuilt || aptly publish update --skip-signing --architectures all,amd64 autobuilt
    - rm -rf public
    - cp -a ~/.aptly/public public
    # ease debugging since directory indices are disabled
    - cd public && find > index.html
  artifacts:
    paths:
      - public
  cache:
    paths:
      - ~/.aptly.conf
      - ~/.aptly/