diff --git a/.woodpecker.yml b/.woodpecker.yml index e8280d1..0c8ee47 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,15 +1,16 @@ -pipeline: - build-push-image: - image: plugins/docker +when: + event: tag + branch: ${CI_REPO_DEFAULT_BRANCH} + +steps: + build-push: + image: woodpeckerci/plugin-docker-buildx + secrets: [docker_username, docker_password] settings: - dockerfile: artel/Dockerfile - context: artel registry: forge.citizen4.eu repo: forge.citizen4.eu/${CI_REPO_OWNER}/${CI_REPO_NAME} + dockerfile: artel/Dockerfile + context: artel tags: - - ${CI_COMMIT_SHA:0:10} - - latest - username: - from_secret: docker_username - password: - from_secret: docker_password \ No newline at end of file + - ${CI_COMMIT_TAG} + - latest