diff --git a/.github/workflows/deploy-k8s.yml b/.github/workflows/deploy-k8s.yml index 8471896d2e..958e26363c 100644 --- a/.github/workflows/deploy-k8s.yml +++ b/.github/workflows/deploy-k8s.yml @@ -41,24 +41,45 @@ concurrency: cancel-in-progress: true jobs: imageEKS: - name: build-docker-image-EKS + name: CreateDB runs-on: self-hosted + container: + image: processmaker/cicd:latest + options: --user root steps: - - name: Clone private repository + - name: CreateDB run: | - git clone --depth 1 -b eng "https://$GITHUB_TOKEN@github.com/ProcessMaker/argocd.git" argocd - cd argocd - ls -la - - name: Version Helm - run: | - echo "Get HELM................" - helm version - - name: Helm list - run: | + echo "Creating DB ............." pwd ls -la - helm list - cd argocd - helm list && helm repo add processmaker ${{ secrets.HELM_REPO }} --username ${{ secrets.HELM_USERNAME }} --password ${{ secrets.HELM_PASSWORD }} - echo "Finish migration ...................." + cd /bin/ + ls -la + echo "************************************" + cat db.sh + echo "************************************" + chmod +x /bin/db.sh + /bin/db.sh + echo "##### HELM VERSION ######" + helm version + #imageEKS: + # name: build-docker-image-EKS + # runs-on: self-hosted + # steps: + # - name: Clone private repository + # run: | + # git clone --depth 1 -b eng "https://$GITHUB_TOKEN@github.com/ProcessMaker/argocd.git" argocd + # cd argocd + # ls -la + # - name: Version Helm + # run: | + # echo "Get HELM................" + # helm version + # - name: Helm list + # run: | + # pwd + # ls -la + # helm list + # cd argocd + # helm list && helm repo add processmaker ${{ secrets.HELM_REPO }} --username ${{ secrets.HELM_USERNAME }} --password ${{ secrets.HELM_PASSWORD }} + # echo "Finish migration ...................." \ No newline at end of file