feat(ci): add Docker build+push pipeline for gateway and web images
This commit is contained in:
@@ -59,3 +59,41 @@ steps:
|
||||
- lint
|
||||
- format
|
||||
- test
|
||||
|
||||
publish-gateway:
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
settings:
|
||||
registry: git.mosaicstack.dev
|
||||
repo: git.mosaicstack.dev/mosaic/mosaic-stack-gateway
|
||||
dockerfile: docker/gateway.Dockerfile
|
||||
tags:
|
||||
- latest
|
||||
- ${CI_COMMIT_SHA}
|
||||
username:
|
||||
from_secret: REGISTRY_USERNAME
|
||||
password:
|
||||
from_secret: REGISTRY_PASSWORD
|
||||
when:
|
||||
- event: push
|
||||
branch: main
|
||||
depends_on:
|
||||
- build
|
||||
|
||||
publish-web:
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
settings:
|
||||
registry: git.mosaicstack.dev
|
||||
repo: git.mosaicstack.dev/mosaic/mosaic-stack-web
|
||||
dockerfile: docker/web.Dockerfile
|
||||
tags:
|
||||
- latest
|
||||
- ${CI_COMMIT_SHA}
|
||||
username:
|
||||
from_secret: REGISTRY_USERNAME
|
||||
password:
|
||||
from_secret: REGISTRY_PASSWORD
|
||||
when:
|
||||
- event: push
|
||||
branch: main
|
||||
depends_on:
|
||||
- build
|
||||
|
||||
Reference in New Issue
Block a user