2021-02-04 03:52:15 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: build-arm64
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: arm64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: linky2influx
|
|
|
|
image: golang:alpine
|
|
|
|
commands:
|
|
|
|
- apk --no-cache add build-base
|
|
|
|
- go get -d -v
|
2022-03-21 13:23:53 +00:00
|
|
|
- go build -v -buildvcs=false -ldflags="-s -w"
|
2021-02-04 03:52:15 +00:00
|
|
|
|
2021-08-12 01:49:24 +00:00
|
|
|
- name: deploy binary
|
|
|
|
image: plugins/s3
|
|
|
|
settings:
|
2022-02-18 17:57:47 +00:00
|
|
|
endpoint: https://storage.nemunai.re
|
2021-08-12 01:49:24 +00:00
|
|
|
path_style: true
|
|
|
|
bucket: linky2influx
|
|
|
|
access_key:
|
|
|
|
from_secret: s3_access_key
|
|
|
|
secret_key:
|
|
|
|
from_secret: s3_secret_key
|
|
|
|
source: linky2influx
|
|
|
|
target: /${DRONE_BRANCH//\//-}/${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
|
|
|
|
|
2021-02-04 03:52:15 +00:00
|
|
|
- name: publish
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
repo: nemunaire/linky2influx
|
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
|
2022-07-29 16:52:07 +00:00
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- cron
|
|
|
|
- push
|
|
|
|
- tag
|
2021-02-04 03:52:15 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: build-arm
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: arm
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: linky2influx
|
|
|
|
image: golang:alpine
|
|
|
|
commands:
|
|
|
|
- apk --no-cache add build-base
|
|
|
|
- go get -d -v
|
2022-03-21 13:23:53 +00:00
|
|
|
- go vet -v -buildvcs=false
|
|
|
|
- go build -v -buildvcs=false -ldflags="-s -w"
|
2021-02-04 03:52:15 +00:00
|
|
|
|
2021-08-12 01:49:24 +00:00
|
|
|
- name: deploy binary
|
2022-12-17 23:01:57 +00:00
|
|
|
image: plugins/s3:linux-arm
|
2021-08-12 01:49:24 +00:00
|
|
|
settings:
|
2022-02-18 17:57:47 +00:00
|
|
|
endpoint: https://storage.nemunai.re
|
2021-08-12 01:49:24 +00:00
|
|
|
path_style: true
|
|
|
|
bucket: linky2influx
|
|
|
|
access_key:
|
|
|
|
from_secret: s3_access_key
|
|
|
|
secret_key:
|
|
|
|
from_secret: s3_secret_key
|
|
|
|
source: linky2influx
|
|
|
|
target: /${DRONE_BRANCH//\//-}/${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
|
|
|
|
|
2021-02-04 03:52:15 +00:00
|
|
|
- name: publish
|
2023-02-12 09:21:20 +00:00
|
|
|
image: plugins/docker:linux-arm
|
2021-02-04 03:52:15 +00:00
|
|
|
settings:
|
|
|
|
repo: nemunaire/linky2influx
|
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
|
|
|
|
custom_dns: 192.168.0.254
|
|
|
|
custom_dns_search: ""
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
|
2022-07-29 16:52:07 +00:00
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- cron
|
|
|
|
- push
|
|
|
|
- tag
|
2021-02-04 03:52:15 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: docker-manifest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: publish
|
|
|
|
image: plugins/manifest
|
|
|
|
settings:
|
|
|
|
auto_tag: true
|
|
|
|
ignore_missing: true
|
|
|
|
spec: .drone-manifest.yml
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
2022-07-29 16:52:07 +00:00
|
|
|
- cron
|
2021-02-04 03:52:15 +00:00
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- build-arm
|
|
|
|
- build-arm64
|