From 080c68661b3f14752f7f4294295726d9aea06ed9 Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Fri, 28 Jul 2023 14:48:56 -0700 Subject: [PATCH] Add a step in the CI pipeline to build a container image --- .woodpecker.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index 3579342..bab2dfc 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -22,3 +22,19 @@ steps: - pip_token when: event: tag + publish-image: + image: woodpeckerci/plugin-docker-buildx + settings: + dockerfile: Dockerfile + registry: git.snyman.info + username: $DOCKER_USERNAME + password: $DOCKER_TOKEN + repo: git.snyman.info/${CI_REPO_OWNER}/codesmidgen + tags: + - latest + - ${CI_COMMIT_TAG##v} + secrets: + - docker_username + - docker_token + when: + event: tag