Skip to content
Snippets Groups Projects
Verified Commit 1760dc1d authored by Rafael László's avatar Rafael László :speech_balloon:
Browse files

"Fixing some issues"

parent 6759faa0
No related branches found
No related tags found
No related merge requests found
Pipeline #17671 passed
...@@ -40,17 +40,18 @@ Docker build: ...@@ -40,17 +40,18 @@ Docker build:
Deploy to Kubernetes: Deploy to Kubernetes:
stage: deploy stage: deploy
image: alpine image: alpine
tags: [devteam] tags: [kszk]
environment: environment:
name: master name: master
script: before_script:
- chmod 600 $KUBECONFIG
- apk add --no-cache curl - apk add --no-cache curl
- curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" - curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
- chmod +x ./kubectl - chmod +x ./kubectl
- mv ./kubectl /usr/local/bin/kubectl - mv ./kubectl /usr/local/bin/kubectl
- kubectl version - kubectl version
script:
- cd k8s - cd k8s
- chmod 600 $KUBECONFIG
- sed -i "s|##IMAGETAG##|${CI_COMMIT_REF_NAME}|" deployment.yml - sed -i "s|##IMAGETAG##|${CI_COMMIT_REF_NAME}|" deployment.yml
- kubectl apply -f deployment.yml - kubectl apply -f deployment.yml
only: only:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment