diff --git a/.woodpecker.yml b/.woodpecker.yml index 009cfd0..6b62d8e 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,3 +1,7 @@ +variables: + - &file Dockerfile + - &repo codeberg.org/${CI_REPO_OWNER}/hello + steps: lint: image: docker.io/node:16 @@ -8,4 +12,18 @@ steps: build: image: docker.io/node:16 commands: - - npm run build \ No newline at end of file + - npm run build + publish: + image: woodpeckerci/plugin-docker-buildx + settings: + dockerfile: *file + platforms: linux/arm/v7,linux/arm64/v8,linux/amd64 + repo: *repo + registry: codeberg.org + tags: ${CI_COMMIT_TAG},latest + username: ${CI_REPO_OWNER} + password: + from_secret: cb_token + when: + event: tag + path: *file \ No newline at end of file