1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-12-29 12:30:11 +00:00

Compare commits

...

2 Commits

View File

@ -22,6 +22,8 @@ steps:
trigger:
event:
- tag
branch:
- main
---
name: amd64-docker
kind: pipeline
@ -42,6 +44,8 @@ steps:
trigger:
event:
- tag
branch:
- main
---
name: arm64-docker
kind: pipeline
@ -69,6 +73,8 @@ steps:
trigger:
event:
- tag
branch:
- main
volumes:
- name: ssh_key
host:
@ -100,6 +106,8 @@ steps:
trigger:
event:
- tag
branch:
- main
volumes:
- name: ssh_key
host:
@ -127,11 +135,16 @@ steps:
key_path: /root/drone_rsa
command_timeout: 50m
script:
- docker pull hrfee/jfa-go:manifest-latest-amd64
- docker pull hrfee/jfa-go:manifest-latest-arm64
- docker pull hrfee/jfa-go:manifest-latest-armhf
- env DOCKER_CLI_EXPERIMENTAL=enabled docker manifest create hrfee/jfa-go:latest --amend hrfee/jfa-go:manifest-latest-amd64 --amend hrfee/jfa-go:manifest-latest-arm64 --amend hrfee/jfa-go:manifest-latest-armhf
- env DOCKER_CLI_EXPERIMENTAL=enabled docker manifest push hrfee/jfa-go:latest
trigger:
event:
- tag
branch:
- main
volumes:
- name: ssh_key
host:
@ -185,6 +198,13 @@ steps:
repo: hrfee/jfa-go
tags: manifest-unstable-amd64
trigger:
branch:
- main
event:
exclude:
- pull_request
---
name: arm64-docker-git
kind: pipeline
@ -213,7 +233,6 @@ steps:
trigger:
branch:
- main
- go1.16
event:
exclude:
- pull_request
@ -250,7 +269,6 @@ steps:
trigger:
branch:
- main
- go1.16
event:
exclude:
- pull_request
@ -272,16 +290,19 @@ steps:
path: /root/drone_rsa
settings:
host:
from_secret: ssh_host
from_secret: ssh2_host
username:
from_secret: ssh_username
from_secret: ssh2_username
port:
from_secret: ssh_port
from_secret: ssh2_port
volumes:
- /root/.ssh/docker-build:/root/drone_rsa
key_path: /root/drone_rsa
command_timeout: 50m
script:
- docker pull hrfee/jfa-go:manifest-unstable-amd64
- docker pull hrfee/jfa-go:manifest-unstable-arm64
- docker pull hrfee/jfa-go:manifest-unstable-armhf
- env DOCKER_CLI_EXPERIMENTAL=enabled docker manifest create hrfee/jfa-go:unstable --amend hrfee/jfa-go:manifest-unstable-amd64 --amend hrfee/jfa-go:manifest-unstable-arm64 --amend hrfee/jfa-go:manifest-unstable-armhf
- env DOCKER_CLI_EXPERIMENTAL=enabled docker manifest push hrfee/jfa-go:unstable
depends_on:
@ -291,7 +312,6 @@ depends_on:
trigger:
branch:
- main
- go1.16
event:
exclude:
- pull_request