Skip to content

Commit

Permalink
Merge pull request #30 from osmhpi/drone-docker-build
Browse files Browse the repository at this point in the history
Drone CI: Build SDK Docker images
  • Loading branch information
rs22 authored Jun 13, 2020
2 parents 3a63a01 + 2d6f2d4 commit fcf65e2
Showing 1 changed file with 45 additions and 7 deletions.
52 changes: 45 additions & 7 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,66 @@ type: docker
name: default

steps:

- name: docker metalfs/sdk-base
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
auto_tag: true
auto_tag_suffix: webpack
repo: metalfs/sdk-base
dockerfile: docker/sdk-base/Dockerfile
build_args:
- VIVADO_EDITION=webpack
when:
event:
- tag

- name: docker metalfs/sdk
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
auto_tag: true
auto_tag_suffix: webpack-psl8
repo: metalfs/sdk
dockerfile: docker/sdk/Dockerfile
build_args:
- PSL=PSL8
- VIVADO_EDITION=webpack
when:
event:
- tag
depends_on:
- docker metalfs/sdk-base

- name: software-build
image: metalfs/sdk-base:webpack-psl8
image: metalfs/sdk-base:webpack
commands:
- mkdir build && cd build && cmake -DOPTION_BUILD_EXAMPLES=ON .. && make -j4

- name: snap-action
image: metalfs/sdk-base:webpack-psl8
image: metalfs/sdk-base:webpack
commands:
- cd example/src
- npm install --production
- bash -c "make hw_project"

- name: snap-action-testbench
image: metalfs/sdk-base:webpack-psl8
image: metalfs/sdk-base:webpack
commands:
- cd example/src
- bash -c "make test_target"
depends_on:
- snap-action

- name: example-test-simulation
image: metalfs/sdk-base:webpack-psl8
image: metalfs/sdk-base:webpack
commands:
- cd example/src
- bash -c "make model"
Expand All @@ -38,21 +76,21 @@ steps:
- snap-action-testbench

- name: filesystem-test
image: metalfs/sdk-base:webpack-psl8
image: metalfs/sdk-base:webpack
commands:
- cd build && ./metal-filesystem-test
depends_on:
- software-build

- name: pipeline-test
image: metalfs/sdk-base:webpack-psl8
image: metalfs/sdk-base:webpack
commands:
- cd build && ./metal-pipeline-test
depends_on:
- software-build

# - name: storage-test
# image: metalfs/sdk-base:webpack-psl8
# image: metalfs/sdk-base:webpack
# commands:
# - cd build && ./metal_storage_test
# depends_on:
Expand Down

0 comments on commit fcf65e2

Please sign in to comment.