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