2023-07-23 22:20:42 +00:00
|
|
|
#when:
|
|
|
|
# event: tag
|
|
|
|
# branch: ${CI_REPO_DEFAULT_BRANCH}
|
2023-07-21 23:25:30 +00:00
|
|
|
|
2023-07-23 00:44:21 +00:00
|
|
|
#services:
|
|
|
|
# ci-database:
|
|
|
|
# image: mysql
|
|
|
|
# environment:
|
|
|
|
# - MYSQL_DATABASE=test
|
|
|
|
# - MYSQL_ROOT_PASSWORD=example
|
2023-07-23 22:18:18 +00:00
|
|
|
#
|
2023-07-22 23:47:32 +00:00
|
|
|
|
2023-07-21 23:25:30 +00:00
|
|
|
steps:
|
2023-07-21 23:33:17 +00:00
|
|
|
step1:
|
2023-07-23 22:25:22 +00:00
|
|
|
image: docker:cli
|
2023-07-22 19:08:21 +00:00
|
|
|
# image: docker:dind
|
2023-07-23 00:44:21 +00:00
|
|
|
# image: quay.io/podman/stable
|
2023-07-23 22:25:22 +00:00
|
|
|
# image: woodpeckerci/plugin-docker-buildx
|
2023-07-21 23:50:10 +00:00
|
|
|
secrets: [image_name]
|
2023-07-21 23:25:30 +00:00
|
|
|
commands:
|
2023-07-22 00:03:48 +00:00
|
|
|
- docker build ./subfolder -t $${IMAGE_NAME} -f ./subfolder/Dockerfile
|
2023-07-22 13:02:19 +00:00
|
|
|
- docker run --rm $${IMAGE_NAME}
|
2023-07-23 00:51:21 +00:00
|
|
|
# privileged: true
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
2023-07-21 23:25:30 +00:00
|
|
|
environment:
|
2023-07-21 23:55:18 +00:00
|
|
|
TEST_ENV: ci-test:test
|
2023-07-21 23:25:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
|