Merge pull request 'feat: publish multi-arch docker images' (#10) from multi-arch into master
Reviewed-on: https://git.batsense.net/realaravinth/libmedium/pulls/10
This commit is contained in:
commit
1874596751
@ -1,4 +1,4 @@
|
|||||||
pipeline:
|
steps:
|
||||||
backend:
|
backend:
|
||||||
image: rust
|
image: rust
|
||||||
environment:
|
environment:
|
||||||
@ -12,22 +12,32 @@ pipeline:
|
|||||||
- make
|
- make
|
||||||
- make test
|
- make test
|
||||||
|
|
||||||
build_docker_img:
|
build-docker-img:
|
||||||
image: plugins/docker
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
when:
|
when:
|
||||||
event: [pull_request]
|
event: [pull_request]
|
||||||
|
secrets: [docker_token]
|
||||||
settings:
|
settings:
|
||||||
dry_run: true
|
dry_run: true
|
||||||
repo: realaravinth/libmedium
|
repo: realaravinth/libmedium
|
||||||
tags: latest
|
|
||||||
|
|
||||||
build_and_publish_docker_img:
|
|
||||||
image: plugins/docker
|
|
||||||
when:
|
|
||||||
event: [push, tag, deployment]
|
|
||||||
settings:
|
|
||||||
username: realaravinth
|
username: realaravinth
|
||||||
password:
|
password:
|
||||||
from_secret: DOCKER_TOKEN
|
from_secret: DOCKER_TOKEN
|
||||||
|
platforms: linux/amd64,linux/arm64/v8
|
||||||
|
tag: latest
|
||||||
|
|
||||||
|
|
||||||
|
publish-docker-img:
|
||||||
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
|
when:
|
||||||
|
event: [push, tag, deployment]
|
||||||
|
branch: master
|
||||||
|
secrets: [docker_token]
|
||||||
|
settings:
|
||||||
|
dry_run: true
|
||||||
repo: realaravinth/libmedium
|
repo: realaravinth/libmedium
|
||||||
tags: latest
|
username: realaravinth
|
||||||
|
password:
|
||||||
|
from_secret: DOCKER_TOKEN
|
||||||
|
platforms: linux/amd64,linux/arm64/v8
|
||||||
|
tag: latest
|
||||||
|
Loading…
x
Reference in New Issue
Block a user