123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421 |
- kind: pipeline
- type: docker
- name: clippy
- platform:
- arch: amd64
- clone:
- disable: true
- steps:
- - name: clone
- image: alpine/git:latest
- user: root
- commands:
- - git clone $DRONE_GIT_HTTP_URL .
- - git checkout $DRONE_COMMIT
- - chown -R 991:991 .
- - name: clippy
- image: asonix/rust-builder:latest-linux-amd64
- pull: always
- commands:
- - rustup component add clippy
- - cargo clippy --no-deps -- -D warnings
- trigger:
- event:
- - push
- - pull_request
- - tag
- ---
- kind: pipeline
- type: docker
- name: tests
- platform:
- arch: amd64
- clone:
- disable: true
- steps:
- - name: clone
- image: alpine/git:latest
- user: root
- commands:
- - git clone $DRONE_GIT_HTTP_URL .
- - git checkout $DRONE_COMMIT
- - chown -R 991:991 .
- - name: tests
- image: asonix/rust-builder:latest-linux-amd64
- pull: always
- commands:
- - cargo test
- trigger:
- event:
- - push
- - pull_request
- - tag
- ---
- kind: pipeline
- type: docker
- name: check-amd64
- platform:
- arch: amd64
- clone:
- disable: true
- steps:
- - name: clone
- image: alpine/git:latest
- user: root
- commands:
- - git clone $DRONE_GIT_HTTP_URL .
- - git checkout $DRONE_COMMIT
- - chown -R 991:991 .
- - name: check
- image: asonix/rust-builder:latest-linux-amd64
- pull: always
- commands:
- - cargo check --target=$TARGET
- trigger:
- event:
- - push
- - pull_request
- ---
- kind: pipeline
- type: docker
- name: build-amd64
- platform:
- arch: amd64
- clone:
- disable: true
- steps:
- - name: clone
- image: alpine/git:latest
- user: root
- commands:
- - git clone $DRONE_GIT_HTTP_URL .
- - git checkout $DRONE_COMMIT
- - chown -R 991:991 .
- - name: build
- image: asonix/rust-builder:latest-linux-amd64
- pull: always
- commands:
- - cargo build --target=$TARGET --release
- - $TOOL-strip target/$TARGET/release/relay
- - cp target/$TARGET/release/relay .
- - cp relay relay-linux-amd64
- - name: push
- image: plugins/docker:20
- settings:
- username: asonix
- password:
- from_secret: dockerhub_token
- repo: asonix/relay
- dockerfile: docker/drone/Dockerfile
- auto_tag: true
- auto_tag_suffix: linux-amd64
- build_args:
- - REPO_ARCH=amd64
- - name: publish
- image: plugins/gitea-release:1
- settings:
- api_key:
- from_secret: gitea_token
- base_url: https://git.asonix.dog
- files:
- - relay-linux-amd64
- depends_on:
- - clippy
- - tests
- trigger:
- event:
- - tag
- ---
- kind: pipeline
- type: docker
- name: check-arm64v8
- platform:
- arch: amd64
- clone:
- disable: true
- steps:
- - name: clone
- image: alpine/git:latest
- user: root
- commands:
- - git clone $DRONE_GIT_HTTP_URL .
- - git checkout $DRONE_COMMIT
- - chown -R 991:991 .
- - name: check
- image: asonix/rust-builder:latest-linux-arm64v8
- pull: always
- commands:
- - cargo check --target=$TARGET
- trigger:
- event:
- - push
- - pull_request
- ---
- kind: pipeline
- type: docker
- name: build-arm64v8
- platform:
- arch: amd64
- clone:
- disable: true
- steps:
- - name: clone
- image: alpine/git:latest
- user: root
- commands:
- - git clone $DRONE_GIT_HTTP_URL .
- - git checkout $DRONE_COMMIT
- - chown -R 991:991 .
- - name: build
- image: asonix/rust-builder:latest-linux-arm64v8
- pull: always
- commands:
- - cargo build --target=$TARGET --release
- - $TOOL-strip target/$TARGET/release/relay
- - cp target/$TARGET/release/relay .
- - cp relay relay-linux-arm64v8
- - name: push
- image: plugins/docker:20
- settings:
- username: asonix
- password:
- from_secret: dockerhub_token
- repo: asonix/relay
- dockerfile: docker/drone/Dockerfile
- auto_tag: true
- auto_tag_suffix: linux-arm64v8
- build_args:
- - REPO_ARCH=arm64v8
- - name: publish
- image: plugins/gitea-release:1
- settings:
- api_key:
- from_secret: gitea_token
- base_url: https://git.asonix.dog
- files:
- - relay-linux-arm64v8
- depends_on:
- - clippy
- - tests
- trigger:
- event:
- - tag
- ---
- kind: pipeline
- type: docker
- name: check-arm32v7
- platform:
- arch: amd64
- clone:
- disable: true
- steps:
- - name: clone
- image: alpine/git:latest
- user: root
- commands:
- - git clone $DRONE_GIT_HTTP_URL .
- - git checkout $DRONE_COMMIT
- - chown -R 991:991 .
- - name: check
- image: asonix/rust-builder:latest-linux-arm32v7
- pull: always
- commands:
- - cargo check --target=$TARGET
- trigger:
- event:
- - push
- - pull_request
- ---
- kind: pipeline
- type: docker
- name: build-arm32v7
- platform:
- arch: amd64
- clone:
- disable: true
- steps:
- - name: clone
- image: alpine/git:latest
- user: root
- commands:
- - git clone $DRONE_GIT_HTTP_URL .
- - git checkout $DRONE_COMMIT
- - chown -R 991:991 .
- - name: build
- image: asonix/rust-builder:latest-linux-arm32v7
- pull: always
- commands:
- - cargo build --target=$TARGET --release
- - $TOOL-strip target/$TARGET/release/relay
- - cp target/$TARGET/release/relay .
- - cp relay relay-linux-arm32v7
- - name: push
- image: plugins/docker:20
- settings:
- username: asonix
- password:
- from_secret: dockerhub_token
- repo: asonix/relay
- dockerfile: docker/drone/Dockerfile
- auto_tag: true
- auto_tag_suffix: linux-arm32v7
- build_args:
- - REPO_ARCH=arm32v7
- - name: publish
- image: plugins/gitea-release:1
- settings:
- api_key:
- from_secret: gitea_token
- base_url: https://git.asonix.dog
- files:
- - relay-linux-arm32v7
- depends_on:
- - clippy
- - tests
- trigger:
- event:
- - tag
- ---
- kind: pipeline
- type: docker
- name: manifest
- platform:
- arch: amd64
- clone:
- disable: true
- steps:
- - name: clone
- image: alpine/git:latest
- user: root
- commands:
- - git clone $DRONE_GIT_HTTP_URL .
- - git checkout $DRONE_COMMIT
- - chown -R 991:991 .
- - name: manifest
- image: plugins/manifest:1
- settings:
- username: asonix
- password:
- from_secret: dockerhub_token
- dump: true
- auto_tag: true
- ignore_missing: true
- spec: docker/drone/manifest.tmpl
- depends_on:
- - build-amd64
- - build-arm64v8
- - build-arm32v7
- trigger:
- event:
- - tag
- ---
- kind: pipeline
- type: docker
- name: publish-crate
- platform:
- arch: amd64
- clone:
- disable: true
- steps:
- - name: clone
- image: alpine/git:latest
- user: root
- commands:
- - git clone $DRONE_GIT_HTTP_URL .
- - git checkout $DRONE_COMMIT
- - chown -R 991:991 .
- - name: publish
- image: asonix/rust-builder:latest-linux-amd64
- pull: always
- environment:
- CRATES_IO_TOKEN:
- from_secret: crates_io_token
- commands:
- - cargo publish --token $CRATES_IO_TOKEN
- depends_on:
- - build-amd64
- - build-arm64v8
- - build-arm32v7
- trigger:
- event:
- - tag
|