Compare commits
No commits in common. "pr-test" and "test" have entirely different histories.
104
.drone.yml
104
.drone.yml
@ -1,12 +1,108 @@
|
|||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: one
|
name: build-amd64
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: alpine
|
pull: always
|
||||||
|
image: spritsail/docker-build
|
||||||
|
settings:
|
||||||
|
repo: thisisatestbuildamd64
|
||||||
|
|
||||||
|
- name: test
|
||||||
|
pull: never
|
||||||
|
image: thisisatestbuildamd64
|
||||||
commands:
|
commands:
|
||||||
- env | grep TOKEN=
|
- uname -m
|
||||||
- env | sort | grep -v TOKEN=
|
|
||||||
|
- name: publish
|
||||||
|
pull: always
|
||||||
|
image: spritsail/docker-publish
|
||||||
|
settings:
|
||||||
|
from: thisisatestbuildamd64
|
||||||
|
repo: frebib/drone-test
|
||||||
|
tags:
|
||||||
|
- latest-amd64
|
||||||
|
environment:
|
||||||
|
DOCKER_PASSWORD:
|
||||||
|
from_secret: docker_password
|
||||||
|
DOCKER_USERNAME:
|
||||||
|
from_secret: docker_username
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
name: build-arm64
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: arm64
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
|
pull: always
|
||||||
|
image: spritsail/docker-build
|
||||||
|
settings:
|
||||||
|
repo: thisisatestbuildarm64
|
||||||
|
|
||||||
|
- name: test
|
||||||
|
pull: never
|
||||||
|
image: thisisatestbuildarm64
|
||||||
|
commands:
|
||||||
|
- uname -m
|
||||||
|
|
||||||
|
- name: publish
|
||||||
|
pull: always
|
||||||
|
image: spritsail/docker-publish
|
||||||
|
settings:
|
||||||
|
from: thisisatestbuildarm64
|
||||||
|
repo: frebib/drone-test
|
||||||
|
tags:
|
||||||
|
- latest-arm64
|
||||||
|
environment:
|
||||||
|
DOCKER_PASSWORD:
|
||||||
|
from_secret: docker_password
|
||||||
|
DOCKER_USERNAME:
|
||||||
|
from_secret: docker_username
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
name: manifest
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
# arch doesn't matter- whatever is free
|
||||||
|
|
||||||
|
clone:
|
||||||
|
disable: true
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: push-manifest
|
||||||
|
pull: always
|
||||||
|
image: plugins/manifest
|
||||||
|
settings:
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
|
template: frebib/drone-test:latest-ARCH
|
||||||
|
target: frebib/drone-test:latest
|
||||||
|
when:
|
||||||
|
status:
|
||||||
|
- success
|
||||||
|
- failure
|
||||||
|
environment:
|
||||||
|
DOCKER_PASSWORD:
|
||||||
|
from_secret: docker_password
|
||||||
|
DOCKER_USERNAME:
|
||||||
|
from_secret: docker_username
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- build-amd64
|
||||||
|
- build-arm64
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: signature
|
||||||
|
hmac: b91ccfe31caf41e29e513ff66196177b7892722d376489d096589ab7ec6fe9f8
|
||||||
|
|
||||||
...
|
...
|
||||||
|
2
Dockerfile
Normal file
2
Dockerfile
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
FROM alpine
|
||||||
|
CMD [ "uname", "-m" ]
|
Loading…
Reference in New Issue
Block a user