.gitlab-ci.yml 1.27 KB
Newer Older
Julian Brost's avatar
Julian Brost committed
1
2
3
4
5
stages:
  - build

demo:
  stage: build
Julian Brost's avatar
Julian Brost committed
6
7
8
  image: alpine
  before_script:
    - apk add git
Julian Brost's avatar
Julian Brost committed
9
  script:
Julian Brost's avatar
Julian Brost committed
10
    - echo "Running demo CI job ${GITHUB_JOB=(none)} for GitHub commit ${GITHUB_COMMIT_ID=(none)}"
Julian Brost's avatar
Julian Brost committed
11
12
13
14
    - git clone https://github.com/${GITHUB_REPO}.git
    - cd $(basename "${GITHUB_REPO}")
    - git fetch origin "${GITHUB_COMMIT_ID}"
    - git checkout "${GITHUB_COMMIT_ID}"
Julian Brost's avatar
Julian Brost committed
15
    - git show
Julian Brost's avatar
Julian Brost committed
16
17
18
19
20
  only:
    variables:
      - $GITHUB_REPO
      - $GITHUB_COMMIT
      - $GITHUB_JOB
Julian Brost's avatar
Julian Brost committed
21
22
23
24
25

raspbian/buster:
  stage: build
  image: registry.icinga.com/jbrost/public-docker-containers/raspbian:bullseye
  script:
Julian Brost's avatar
Julian Brost committed
26
    - apt-get update && apt-get install -y aptitude build-essential devscripts git pbuilder sudo
Julian Brost's avatar
Julian Brost committed
27
28
29
    - uname -a
    - dpkg --print-architecture
    - cat /etc/os-release
Julian Brost's avatar
Julian Brost committed
30
    - pwd
Julian Brost's avatar
Julian Brost committed
31
    - env
Julian Brost's avatar
Julian Brost committed
32
    - git clone https://git.icinga.com/build-docker/scripts.git
Julian Brost's avatar
Julian Brost committed
33
    - export PATH=$(pwd)/scripts:$PATH
Julian Brost's avatar
Julian Brost committed
34
    - git clone https://github.com/icinga/icinga2.git
Julian Brost's avatar
Julian Brost committed
35
36
37
    - export UPSTREAM_GIT_URL=file://$CI_PROJECT_DIR/icinga2/.git
    - git clone https://git.icinga.com/packaging/raspbian-icinga2.git
    - cd raspbian-icinga2
Julian Brost's avatar
Julian Brost committed
38
39
40
    - icinga-build-deb-source
    - icinga-build-deb-binary
    - icinga-build-deb-test
Julian Brost's avatar
Julian Brost committed
41
42
43
  variables:
    ICINGA_BUILD_PROJECT: icinga2
    ICINGA_BUILD_TYPE: snapshot
Julian Brost's avatar
Julian Brost committed
44
    
Julian Brost's avatar
Julian Brost committed
45
46
  tags:
    - arm