mirror of
https://github.com/Dannecron/netology-devops-gitlab.git
synced 2025-12-25 23:32:34 +03:00
fix deploy config
This commit is contained in:
@@ -58,8 +58,6 @@ test-api:
|
|||||||
deploy:
|
deploy:
|
||||||
image: gcr.io/cloud-builders/kubectl:latest
|
image: gcr.io/cloud-builders/kubectl:latest
|
||||||
stage: deploy
|
stage: deploy
|
||||||
variables:
|
|
||||||
DOCKER_IMAGE: "cr.yandex/${YA_DOCKER_REGISTRY}/${DOCKER_IMAGE}"
|
|
||||||
needs:
|
needs:
|
||||||
- pre-build
|
- pre-build
|
||||||
- docker-build
|
- docker-build
|
||||||
|
|||||||
@@ -13,12 +13,12 @@ spec:
|
|||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: hello
|
app: python-api
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
namespace: hello-world
|
namespace: python-api
|
||||||
labels:
|
labels:
|
||||||
app: hello
|
app: python-api
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: python_api
|
- name: python_api
|
||||||
|
|||||||
Reference in New Issue
Block a user