|
|
@ -259,18 +259,17 @@ platform: |
|
|
|
|
|
|
|
|
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- name: manifest |
|
|
|
- name: manifest |
|
|
|
image: plugins/manifest:1.0.2 |
|
|
|
image: rancher/dapper:v0.4.2 |
|
|
|
settings: |
|
|
|
environment: |
|
|
|
username: |
|
|
|
USERNAME: |
|
|
|
from_secret: docker_username |
|
|
|
from_secret: docker_username |
|
|
|
password: |
|
|
|
PASSWORD: |
|
|
|
from_secret: docker_password |
|
|
|
from_secret: docker_password |
|
|
|
platforms: |
|
|
|
commands: |
|
|
|
- linux/amd64 |
|
|
|
- export DOCKER_TAG=$(echo "${DRONE_TAG}" | sed -e 's/+/-/g') |
|
|
|
- linux/arm64 |
|
|
|
- docker login -u $env:USERNAME -p $env:PASSWORD |
|
|
|
- linux/arm |
|
|
|
- docker manifest create ${DOCKER_TAG} ${DOCKER_TAG}-amd64 ${DOCKER_TAG}-arm64 ${DOCKER_TAG}-arm |
|
|
|
target: "rancher/k3s:${DRONE_TAG}" |
|
|
|
- docker manifest push ${DOCKER_TAG} |
|
|
|
template: "rancher/k3s:${DRONE_TAG}-ARCH" |
|
|
|
|
|
|
|
when: |
|
|
|
when: |
|
|
|
instance: |
|
|
|
instance: |
|
|
|
- drone-publish.rancher.io |
|
|
|
- drone-publish.rancher.io |
|
|
|