Skip to content
Snippets Groups Projects
Commit 82278ca5 authored by dpuzyrkov's avatar dpuzyrkov
Browse files

Merge branch 'features-dockerbuild' of...

Merge branch 'features-dockerbuild' of gitlab.demlabs.net:cellframe/cellframe-node into features-dockerbuild
parents e8230bd7 76dde481
No related branches found
No related tags found
3 merge requests!974bugfix-8996,!873Hotfix 8568,!522[+] Version from version file, proper debian packages arch. Project.yaml dep file added. All submodules to its develop last.
...@@ -3,7 +3,6 @@ variables: ...@@ -3,7 +3,6 @@ variables:
stages: stages:
- build - build
- pack
- deploy - deploy
.ci-polygon: .ci-polygon:
...@@ -14,18 +13,12 @@ stages: ...@@ -14,18 +13,12 @@ stages:
extends: .ci-polygon extends: .ci-polygon
stage: build stage: build
image: ubuntu:20.04 image: ubuntu:20.04
timeout: 3 hours 30 minutes
dependencies: [] dependencies: []
artifacts: artifacts:
expire_in: 1h paths:
paths: - build_*/*.deb
- build_*
.pack:
extends: .ci-polygon
image: ubuntu:20.04
stage: pack
before_script: /opt/buildtools/prepare_environment.sh
.deploy: .deploy:
extends: .ci-polygon extends: .ci-polygon
image: ubuntu:20.04 image: ubuntu:20.04
...@@ -36,66 +29,46 @@ stages: ...@@ -36,66 +29,46 @@ stages:
cellframe-node_x86_64-linux-gnu: cellframe-node_x86_64-linux-gnu:
extends: .build extends: .build
before_script: /opt/buildtools/prepare_environment.sh x86_64-linux-gnu before_script: /opt/buildtools/prepare_environment.sh x86_64-linux-gnu
script: ./prod_build/build.sh x86_64-linux-gnu release script:
- ./prod_build/build.sh x86_64-linux-gnu release
cellframe-node-dbg_x86_64-linux-gnu: - ./prod_build/pack.sh x86_64-linux-gnu release
extends: .build
before_script: /opt/buildtools/prepare_environment.sh x86_64-linux-gnu
script: ./prod_build/build.sh x86_64-linux-gnu debug
cellframe-node_armhf-linux-gnu: cellframe-node_armhf-linux-gnu:
extends: .build extends: .build
image: raspbian/stretch image: arm32v7/debian
before_script: /opt/buildtools/prepare_environment.sh armhf-linux-gnu
script: ./prod_build/build.sh armhf-linux-gnu release
cellframe-node-dbg_armhf-linux-gnu:
extends: .build
image: raspbian/stretch
before_script: /opt/buildtools/prepare_environment.sh armhf-linux-gnu before_script: /opt/buildtools/prepare_environment.sh armhf-linux-gnu
script: ./prod_build/build.sh armhf-linux-gnu debug script:
- ./prod_build/build.sh armhf-linux-gnu release
- ./prod_build/pack.sh armhf-linux-gnu release
cellframe-node_aarch64-linux-gnu: cellframe-node_aarch64-linux-gnu:
extends: .build extends: .build
image: arm64v8/ubuntu image: arm64v8/ubuntu
before_script: /opt/buildtools/prepare_environment.sh armhf-linux-gnu before_script: /opt/buildtools/prepare_environment.sh armhf-linux-gnu
script: ./prod_build/build.sh aarch64-linux-gnu release script:
- ./prod_build/build.sh aarch64-linux-gnu release
- ./prod_build/pack.sh aarch64-linux-gnu release
cellframe-node-dbg_aarch64-linux-gnu: #cellframe-node-dbg_aarch64-linux-gnu:
extends: .build # extends: .build
image: arm64v8/ubuntu # image: arm64v8/ubuntu
before_script: /opt/buildtools/prepare_environment.sh aarch64-linux-gnu # before_script: /opt/buildtools/prepare_environment.sh aarch64-linux-gnu
script: ./prod_build/build.sh aarch64-linux-gnu debug # script: ./prod_build/build.sh aarch64-linux-gnu debug
pack-deb:
extends: .pack
deploy:
extends: .deploy
needs: needs:
- cellframe-node_x86_64-linux-gnu - cellframe-node_x86_64-linux-gnu
- cellframe-node-dbg_x86_64-linux-gnu # - cellframe-node-dbg_x86_64-linux-gnu
- cellframe-node_aarch64-linux-gnu - cellframe-node_aarch64-linux-gnu
- cellframe-node-dbg_aarch64-linux-gnu # - cellframe-node-dbg_aarch64-linux-gnu
- cellframe-node_armhf-linux-gnu - cellframe-node_armhf-linux-gnu
- cellframe-node-dbg_armhf-linux-gnu # - cellframe-node-dbg_armhf-linux-gnu
script:
- ./prod_build/pack.sh x86_64-linux-gnu release
- ./prod_build/pack.sh x86_64-linux-gnu debug
- ./prod_build/pack.sh aarch64-linux-gnu release
- ./prod_build/pack.sh aarch64-linux-gnu debug
- ./prod_build/pack.sh armhf-linux-gnu release
- ./prod_build/pack.sh armhf-linux-gnu debug
artifacts:
paths:
- build_*/*.deb
deploy:
extends: .deploy
needs: [pack-deb]
script: script:
- /opt/buildtools/deploy_files.sh pub linux/$CI_COMMIT_REF_NAME/ build_*/*.deb - /opt/buildtools/deploy_files.sh pub linux/$CI_COMMIT_REF_NAME/ build_*/*.deb
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment