ci-test-sysbox/.woodpecker/.step1.yml

31 wiersze
637 B
YAML

#when:
# event: tag
# branch: ${CI_REPO_DEFAULT_BRANCH}
#services:
# ci-database:
# image: mysql
# environment:
# - MYSQL_DATABASE=test
# - MYSQL_ROOT_PASSWORD=example
#
steps:
step1:
image: docker:cli
# image: docker:dind
# image: quay.io/podman/stable
# image: woodpeckerci/plugin-docker-buildx
secrets: [image_name]
commands:
- docker build ./subfolder -t $${IMAGE_NAME} -f ./subfolder/Dockerfile
- docker run --rm $${IMAGE_NAME}
# privileged: true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
TEST_ENV: ci-test:test