Skip to content

Commit

Permalink
ci: migrate to the latest ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingshen Sun committed Nov 9, 2018
1 parent 57e5224 commit ac9a81f
Showing 1 changed file with 30 additions and 51 deletions.
81 changes: 30 additions & 51 deletions .drone.yml
Original file line number Original file line Diff line number Diff line change
@@ -1,51 +1,30 @@
pipeline: kind: pipeline
prepare: name: default
image: plugins/git
commands: steps:
- git clone https://github.com/mesalock-linux/packages.git packages - name: prepare
- git clone https://github.com/mesalock-linux/mkpkg.git mkpkg image: plugins/git
build-mkpkg: commands:
image: mesalocklinux/build-mesalock-linux:latest - git clone https://github.com/mesalock-linux/packages.git packages
pull: true - git clone https://github.com/mesalock-linux/mkpkg.git mkpkg
commands:
- cd mkpkg && cargo build --release - name: build-mkpkg
build-packages: image: mesalocklinux/build-mesalock-linux:latest
image: mesalocklinux/build-mesalock-linux:latest pull: always
commands: commands:
- for pkg in `find packages -name "build.yml"`; do ./mkpkg/target/release/mkpkg --verbose build $pkg || exit 1; done - cd mkpkg && cargo build --release
build-iso:
image: mesalocklinux/build-mesalock-linux:latest - name: build-packages
commands: image: mesalocklinux/build-mesalock-linux:latest
- ./mesalockiso commands:
build-rootfs: - ./mkpkg/target/release/mkpkg build `find packages -name "build.yml"`
image: mesalocklinux/build-mesalock-linux:latest
commands: - name: build-iso
- ./mesalockrootfs image: mesalocklinux/build-mesalock-linux:latest
publish-docker-image-develop: commands:
image: plugins/docker - ./mesalockiso
repo: mesalocklinux/mesalock-linux
secrets: [ docker_username, docker_password ] - name: build-rootfs
tags: [ develop ] image: mesalocklinux/build-mesalock-linux:latest
when: commands:
branch: develop - ./mesalockrootfs
event: push
publish-docker-image-latest:
image: plugins/docker
repo: mesalocklinux/mesalock-linux
secrets: [ docker_username, docker_password ]
tags: [ latest ]
when:
branch: master
event: push
publish-docker-image-tag:
image: plugins/docker
repo: mesalocklinux/mesalock-linux
secrets: [ docker_username, docker_password ]
default_tags: true
when:
event: tag
notify:
image: drillster/drone-email
secrets: [ plugin_host, plugin_username, plugin_password, plugin_from ]
when:
status: [ success, changed, failure ]

0 comments on commit ac9a81f

Please sign in to comment.