website/.woodpecker/buildAndPublish.yml

16 lines
360 B
YAML

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"