Add buildAndPublish.yml

This commit is contained in:
akp 2025-07-31 21:35:23 +01:00
parent df82084b46
commit b0cdbece9c

View 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"