Created
March 25, 2024 15:54
-
-
Save juffaz/4789e5343ea2f36ec66391dcc10ba0e0 to your computer and use it in GitHub Desktop.
gitlab-ci.yaml-k3s
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stages: | |
- deploy-test | |
- deploy-prod | |
deploy-prod: | |
image: | |
name: bitnami/kubectl:1.27.3 | |
entrypoint: [""] | |
stage: deploy-prod | |
only: | |
- main | |
script: | |
- kubectl apply -f $CI_PROJECT_DIR/kubernetes.yml # Directory where yamls are placed in repo | |
- kubectl get pods -n test | |
deploy-test: | |
image: | |
name: bitnami/kubectl:1.27.3 | |
entrypoint: [""] | |
stage: deploy-test | |
environment: | |
name: test | |
url: https://test.site.az | |
only: | |
- test | |
script: | |
- kubectl apply -f $CI_PROJECT_DIR/kubernetes.yml # Directory where yamls are placed in repo | |
- kubectl get pods -n test | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment