Add buildAndPublish.yml
This commit is contained in:
parent
df82084b46
commit
b0cdbece9c
1 changed files with 16 additions and 0 deletions
16
.woodpecker/buildAndPublish.yml
Normal file
16
.woodpecker/buildAndPublish.yml
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
when:
|
||||||
|
branch: build
|
||||||
|
event: manual
|
||||||
|
|
||||||
|
services:
|
||||||
|
- name: dind
|
||||||
|
image: docker:dind
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Build and publish
|
||||||
|
image: docker
|
||||||
|
environment:
|
||||||
|
IMAGE_NAME: "ghcr.io/codemicro/website"
|
||||||
|
commands:
|
||||||
|
- docker build . --tag ${IMAGE_NAME}:latest --tag ${IMAGE_NAME}:${CI_COMMIT_SHORT_SHA#'v'}
|
||||||
|
- "docker push --all-tags $IMAGE_NAME"
|
Loading…
Add table
Add a link
Reference in a new issue