# woodpecker.yml labels: hostname: "macmini7" clone: git: image: woodpeckerci/plugin-git settings: partial: false depth: 1 steps: run-smoke-tests: name: run-playwright-tests image: git.nixc.us/colin/playwright:latest secrets: [REGISTRY_USER, REGISTRY_PASSWORD] when: - branch: main - path: include: [ 'stack.yml', 'docker-compose.yml', 'Dockerfile.*', '.woodpecker.yml', '*.tests.ts' ] deploy-config: name: deploy-config when: - path: include: [ 'stack.yml', 'docker-compose.yml', 'Dockerfile', '.woodpecker.yml', 'config.toml', 'script.sh' ] image: woodpeckerci/plugin-docker-buildx secrets: [REGISTRY_USER, REGISTRY_PASSWORD] volumes: - /var/run/docker.sock:/var/run/docker.sock commands: - echo "$${REGISTRY_PASSWORD}" | docker login -u "$${REGISTRY_USER}" --password-stdin git.nixc.us - docker stack deploy --with-registry-auth -c ./$${CI_REPO_NAME}.yml $${CI_REPO_NAME} run-post-deploy-smoke-tests: name: run-post-deploy-smoke-tests image: git.nixc.us/colin/playwright:latest secrets: [REGISTRY_USER, REGISTRY_PASSWORD] when: - branch: main - path: include: [ 'stack.yml', 'docker-compose.yml', 'Dockerfile.*', '.woodpecker.yml', '*.tests.ts' ]