youp0m/.drone.yml

179 lines
4.2 KiB
YAML
Raw Normal View History

2020-10-18 16:32:36 +00:00
---
kind: pipeline
type: docker
2021-09-15 16:06:52 +00:00
name: build-arm64
2020-10-18 16:32:36 +00:00
platform:
os: linux
arch: arm64
steps:
- name: build
image: golang:alpine
commands:
- apk --no-cache add git go-bindata
- go generate -v
- go get -v -d
- go build -v -ldflags="-s -w" -o youp0m
2020-10-18 16:34:14 +00:00
- wget -O Dockerfile https://ankh.serekh.nemunai.re/local/Dockerfile-youp0m
- wget -O entrypoint.sh https://ankh.serekh.nemunai.re/local/entrypoint.sh-youp0m && chmod +x entrypoint.sh
2020-10-18 16:32:36 +00:00
2020-10-18 16:34:14 +00:00
- name: publish
image: plugins/docker
settings:
repo: nemunaire/youp0m
auto_tag: true
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
2021-09-22 07:59:21 +00:00
experimental: true
squash: true
2020-10-18 16:34:14 +00:00
username:
from_secret: docker_username
password:
from_secret: docker_password
2022-09-05 17:12:51 +00:00
- name: publish on nemunai.re
image: plugins/docker
settings:
registry: registry.nemunai.re
repo: registry.nemunai.re/youp0m
auto_tag: true
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
experimental: true
squash: true
username:
from_secret: docker_nemunai.re_username
password:
from_secret: docker_nemunai.re_password
2020-10-18 16:34:14 +00:00
---
kind: pipeline
type: docker
2021-09-15 16:06:52 +00:00
name: build-amd64
platform:
os: linux
arch: amd64
steps:
- name: build
image: golang:alpine
commands:
- apk --no-cache add git go-bindata
- go generate -v
- go get -v -d
- go build -v -ldflags="-s -w" -o youp0m
2021-09-15 16:06:52 +00:00
- wget -O Dockerfile https://ankh.serekh.nemunai.re/local/Dockerfile-youp0m
- wget -O entrypoint.sh https://ankh.serekh.nemunai.re/local/entrypoint.sh-youp0m && chmod +x entrypoint.sh
- name: publish
image: plugins/docker
settings:
repo: nemunaire/youp0m
auto_tag: true
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
2021-09-22 07:59:21 +00:00
experimental: true
squash: true
2021-09-15 16:06:52 +00:00
username:
from_secret: docker_username
password:
from_secret: docker_password
2022-09-05 17:12:51 +00:00
- name: publish on nemunai.re
image: plugins/docker
settings:
registry: registry.nemunai.re
repo: registry.nemunai.re/youp0m
auto_tag: true
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
experimental: true
squash: true
username:
from_secret: docker_nemunai.re_username
password:
from_secret: docker_nemunai.re_password
2021-09-15 16:06:52 +00:00
---
kind: pipeline
type: docker
name: build-arm
2020-10-18 16:34:14 +00:00
platform:
os: linux
arch: arm
steps:
- name: build
image: golang:alpine
commands:
- apk --no-cache add git go-bindata
- go generate -v
- go get -v -d
- go build -v -ldflags="-s -w" -o youp0m
2020-10-18 16:34:14 +00:00
- wget -O Dockerfile https://ankh.serekh.nemunai.re/local/Dockerfile-youp0m
- wget -O entrypoint.sh https://ankh.serekh.nemunai.re/local/entrypoint.sh-youp0m && chmod +x entrypoint.sh
- name: publish
2023-01-22 19:30:24 +00:00
image: plugins/docker:linux-arm
2020-10-18 16:32:36 +00:00
settings:
repo: nemunaire/youp0m
auto_tag: true
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
2021-09-22 07:59:21 +00:00
experimental: true
squash: true
2020-10-18 16:32:36 +00:00
username:
from_secret: docker_username
password:
from_secret: docker_password
2021-09-15 16:06:52 +00:00
2022-09-05 17:12:51 +00:00
- name: publish on nemunai.re
2023-01-22 19:30:24 +00:00
image: plugins/docker:linux-arm
2022-09-05 17:12:51 +00:00
settings:
registry: registry.nemunai.re
repo: registry.nemunai.re/youp0m
auto_tag: true
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
experimental: true
squash: true
username:
from_secret: docker_nemunai.re_username
password:
from_secret: docker_nemunai.re_password
2021-09-15 16:06:52 +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
2022-09-05 17:12:51 +00:00
- name: publish on nemunai.re
image: plugins/manifest
settings:
auto_tag: true
ignore_missing: true
spec: .drone-manifest-local.yml
username:
from_secret: docker_nemunai.re_username
password:
from_secret: docker_nemunai.re_password
2021-09-15 16:06:52 +00:00
trigger:
event:
- cron
- push
- tag
depends_on:
- build-arm
- build-arm64
- build-amd64