Declarated containers instead of steps
This commit is contained in:
@ -3,8 +3,7 @@ pipeline:
|
|||||||
event: push
|
event: push
|
||||||
branch: woodpecker
|
branch: woodpecker
|
||||||
|
|
||||||
steps:
|
code-tests:
|
||||||
- name: code-tests
|
|
||||||
image: python:3.11.7-alpine
|
image: python:3.11.7-alpine
|
||||||
commands:
|
commands:
|
||||||
- cd api
|
- cd api
|
||||||
@ -13,7 +12,7 @@ pipeline:
|
|||||||
- 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
|
||||||
|
|
||||||
- name: build-and-push
|
build-and-push:
|
||||||
image: marcin00.azurecr.io/azure-cli-docker:slim-bookworm
|
image: marcin00.azurecr.io/azure-cli-docker:slim-bookworm
|
||||||
environment:
|
environment:
|
||||||
ACR_NAME: marcin00
|
ACR_NAME: marcin00
|
||||||
@ -28,7 +27,7 @@ pipeline:
|
|||||||
kubernetes:
|
kubernetes:
|
||||||
runtimeClassName: sysbox-runc
|
runtimeClassName: sysbox-runc
|
||||||
|
|
||||||
- name: gitops-commit
|
gitops-commit:
|
||||||
image: alpine/git
|
image: alpine/git
|
||||||
environment:
|
environment:
|
||||||
DEPLOY_REPO: ssh://git@srv22.mikr.us:20343/pikram/user-microservice-deploy.git
|
DEPLOY_REPO: ssh://git@srv22.mikr.us:20343/pikram/user-microservice-deploy.git
|
||||||
|
Reference in New Issue
Block a user