feature/cicd #2

Merged
alexandvvvvv merged 8 commits from feature/cicd into main 2025-10-03 08:32:21 +00:00
Showing only changes of commit 35e1ad9b9f - Show all commits

View File

@@ -4,13 +4,15 @@ name: default
steps: steps:
- name: build-and-deploy - name: build-and-deploy
image: docker:20.10.16 image: docker:20.10.16-dind
privileged: true
environment: environment:
DOCKER_HOST: unix:///var/run/docker.sock DOCKER_TLS_CERTDIR: ""
volumes:
- name: docker-sock
path: /var/run/docker.sock
commands: commands:
# Start Docker daemon
- dockerd-entrypoint.sh &
- sleep 10
# Build the Docker image # Build the Docker image
- docker build -t localhost:5000/counter:latest . - docker build -t localhost:5000/counter:latest .
@@ -30,12 +32,7 @@ steps:
# Test the API # Test the API
- curl -f http://localhost:8080/ || exit 1 - curl -f http://localhost:8080/ || exit 1
volumes:
- name: docker-sock
host:
path: /var/run/docker.sock
trigger: trigger:
branch: branch:
- main - main
- master - feature/*