Removed redundant spaces
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Marcin-Ramotowski 2025-05-27 19:30:54 +00:00
parent cefb8eba4d
commit b10f70cf65

View File

@ -3,6 +3,7 @@ when:
branch: woodpecker branch: woodpecker
steps: steps:
# Run Pytest tests
- name: code-tests - name: code-tests
image: python:3.11.7-alpine image: python:3.11.7-alpine
commands: commands:
@ -12,6 +13,7 @@ steps:
- pip install -r requirements.txt pytest - pip install -r requirements.txt pytest
- python3 -m pytest --junit-xml=pytest_junit.xml - python3 -m pytest --junit-xml=pytest_junit.xml
# Build, test and push Docker image to ACR
- name: build - name: build
image: docker:dind image: docker:dind
privileged: true privileged: true
@ -20,8 +22,8 @@ steps:
ACR_PASSWORD: ACR_PASSWORD:
from_secret: acr_password from_secret: acr_password
commands: commands:
- dockerd-entrypoint.sh & - dockerd-entrypoint.sh & # start Docker service in the background
- sleep 10 # czas na uruchomienie usługi Docker - sleep 10 # waiting for Docker start
- DOCKER_IMAGE=marcin00.azurecr.io/user-microservice:$CI_COMMIT_SHA - DOCKER_IMAGE=marcin00.azurecr.io/user-microservice:$CI_COMMIT_SHA