153 lines
2.6 KiB
YAML
153 lines
2.6 KiB
YAML
kind: pipeline
|
|
type: docker
|
|
name: publish-amd64
|
|
|
|
platform:
|
|
arch: amd64
|
|
|
|
steps:
|
|
- name: push
|
|
image: plugins/docker:20
|
|
settings:
|
|
username: asonix
|
|
password:
|
|
from_secret: dockerhub_token
|
|
repo: asonix/rust-builder
|
|
dockerfile: Dockerfile
|
|
auto_tag: true
|
|
auto_tag_suffix: linux-amd64
|
|
build_args:
|
|
- TARGET=x86_64-unknown-linux-musl
|
|
- TOOL=x86_64-linux-musl
|
|
|
|
- name: latest
|
|
image: plugins/docker:20
|
|
settings:
|
|
username: asonix
|
|
password:
|
|
from_secret: dockerhub_token
|
|
repo: asonix/rust-builder
|
|
dockerfile: Dockerfile
|
|
tag: latest-linux-amd64
|
|
build_args:
|
|
- TARGET=x86_64-unknown-linux-musl
|
|
- TOOL=x86_64-linux-musl
|
|
|
|
trigger:
|
|
event:
|
|
- tag
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
type: docker
|
|
name: publish-arm64v8
|
|
|
|
platform:
|
|
arch: amd64
|
|
|
|
steps:
|
|
- name: push
|
|
image: plugins/docker:20
|
|
settings:
|
|
username: asonix
|
|
password:
|
|
from_secret: dockerhub_token
|
|
repo: asonix/rust-builder
|
|
dockerfile: Dockerfile
|
|
auto_tag: true
|
|
auto_tag_suffix: linux-arm64v8
|
|
build_args:
|
|
- TARGET=aarch64-unknown-linux-musl
|
|
- TOOL=aarch64-linux-musl
|
|
|
|
- name: latest
|
|
image: plugins/docker:20
|
|
settings:
|
|
username: asonix
|
|
password:
|
|
from_secret: dockerhub_token
|
|
repo: asonix/rust-builder
|
|
dockerfile: Dockerfile
|
|
tag: latest-linux-arm64v8
|
|
build_args:
|
|
- TARGET=aarch64-unknown-linux-musl
|
|
- TOOL=aarch64-linux-musl
|
|
|
|
trigger:
|
|
event:
|
|
- tag
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
type: docker
|
|
name: publish-arm32v7
|
|
|
|
platform:
|
|
arch: amd64
|
|
|
|
steps:
|
|
- name: push
|
|
image: plugins/docker:20
|
|
settings:
|
|
username: asonix
|
|
password:
|
|
from_secret: dockerhub_token
|
|
repo: asonix/rust-builder
|
|
dockerfile: Dockerfile
|
|
auto_tag: true
|
|
auto_tag_suffix: linux-arm32v7
|
|
build_args:
|
|
- TARGET=armv7-unknown-linux-musleabihf
|
|
- TOOL=arm-linux-musleabihf
|
|
|
|
- name: latest
|
|
image: plugins/docker:20
|
|
settings:
|
|
username: asonix
|
|
password:
|
|
from_secret: dockerhub_token
|
|
repo: asonix/rust-builder
|
|
dockerfile: Dockerfile
|
|
tag: latest-linux-arm32v7
|
|
build_args:
|
|
- TARGET=armv7-unknown-linux-musleabihf
|
|
- TOOL=arm-linux-musleabihf
|
|
|
|
trigger:
|
|
event:
|
|
- tag
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
type: docker
|
|
name: cron
|
|
|
|
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: tag
|
|
image: asonix/release-checker:0.1
|
|
pull: always
|
|
environment:
|
|
GITEA_TOKEN:
|
|
from_secret: gitea_token
|
|
commands:
|
|
- /usr/local/bin/release-checker
|
|
|
|
trigger:
|
|
event:
|
|
- custom
|
|
- cron
|