This commit is contained in:
@@ -1,5 +1,16 @@
|
|||||||
|
when:
|
||||||
|
- event: push
|
||||||
|
branch: main
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: hello
|
- name: build_image
|
||||||
image: alpine
|
image: docker:dind
|
||||||
commands:
|
commands:
|
||||||
- echo "Hello from CI"
|
- docker build -t scottyah/blog:latest .
|
||||||
|
- docker push scottyah/blog:latest
|
||||||
|
|
||||||
|
- name: deploy
|
||||||
|
image: kubernetes/client:latest
|
||||||
|
commands:
|
||||||
|
- kubectl apply -f kubernetes/k8s.yaml
|
||||||
|
- kubectl rollout status deployment/blog-dep
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
when:
|
|
||||||
- event: push
|
|
||||||
branch: main
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: build_image
|
|
||||||
image: docker:dind
|
|
||||||
commands:
|
|
||||||
- docker build -t scottyah/blog:latest .
|
|
||||||
- docker push scottyah/blog:latest
|
|
||||||
|
|
||||||
- name: deploy
|
|
||||||
image: kubernetes/client:latest
|
|
||||||
commands:
|
|
||||||
- kubectl apply -f kubernetes/k8s.yaml
|
|
||||||
- kubectl rollout status deployment/blog-dep
|
|
||||||
Reference in New Issue
Block a user