steps: lint: image: python:3.11 commands: - pip install hatch - hatch run lint:run test: image: python:3.11 commands: - pip install hatch - cp codesmidgen.example.cfg codesmidgen.cfg - hatch run tests:run publish-package: image: python:3.11 commands: - pip install hatch - hatch build - hatch publish --repo $PIP_REPOSITORY --user $PIP_USERNAME --auth $PIP_TOKEN --no-prompt secrets: - pip_repository - pip_username - 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