diff --git a/.woodpecker.yml b/.woodpecker.yml index 1d1c8d1..a0021dd 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -11,6 +11,7 @@ steps: - ansible-lint - ansible-galaxy collection install "$ANSIBLE_COLLECTION" - ansible-playbook "$ANSIBLE_COLLECTION"/playbooks/main.yml --syntax-check + molecule: image: docker:dind commands: @@ -24,6 +25,28 @@ steps: volumes: - /var/run/docker.sock:/var/run/docker.sock + build: + image: alpine/git + commands: + - apk add ansible + - export ANSIBLE_COLLECTION=slococo/playground + - cd "$ANSIBLE_COLLECTION" + - ansible-galaxy collection build + when: + event: tag + + publish: + image: woodpeckerci/plugin-gitea-release + settings: + base_url: https://git.slc.ar + files: + - "slococo-playground-${CI_COMMIT_TAG##v}.tar.gz" + api_key: + from_secret: FORGEJO_ACCESS_TOKEN + target: master + when: + event: tag + services: dind: image: docker:dind