Skip to content

Commit

Permalink
Merge pull request #226 from kube-HPC/Devops_Feature_ImproveDeploymentCI
Browse files Browse the repository at this point in the history
DevOps feature - improve deployment ci
  • Loading branch information
Adir111 authored Jul 31, 2024
2 parents f8850c5 + c269310 commit 1af71f3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: verify kubectl
run: kubectl cluster-info
- name: deploy
run: ./deploy.sh
run: ./deploy.sh ${{ secrets.HKUBE_DOMAIN_RAW }}
env:
DOCKER_BUILD_PUSH_PASSWORD: ${{ secrets.DOCKER_BUILD_PUSH_PASSWORD }}
DOCKER_BUILD_PUSH_USERNAME: ${{ secrets.DOCKER_BUILD_PUSH_USERNAME }}
Expand Down
3 changes: 2 additions & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/bin/bash
domain="$1"
echo Deploy to kubernetes
# source ./setPath
helm ls --all
helm repo add hkube-dev http://hkube.org/helm/dev/
helm repo add hkube-dev http://"$domain"/helm/dev/
helm repo update
envsubst < ./values-pub-template.yml > /tmp/pub.yml
VERSION=${VERSION:-latest}
Expand Down
2 changes: 1 addition & 1 deletion no.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
- stage: deploy
install:
- ./install.sh
script: ./deploy.sh
script: ./deploy.sh ${{ secrets.HKUBE_DOMAIN_RAW }}
- stage: test
install:
- ./install.sh
Expand Down

0 comments on commit 1af71f3

Please sign in to comment.