diff --git a/.woodpecker/buildAndPublish.yml b/.woodpecker/buildAndPublish.yml new file mode 100644 index 0000000..2eeaa5f --- /dev/null +++ b/.woodpecker/buildAndPublish.yml @@ -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"