diff --git a/.github/workflows/build-deploy-elixir.yml b/.github/workflows/build-deploy-elixir.yml index 69d5fa3..21e031c 100644 --- a/.github/workflows/build-deploy-elixir.yml +++ b/.github/workflows/build-deploy-elixir.yml @@ -31,9 +31,6 @@ on: DOCKER: description: 'needed for registry login' required: true - DOCKER_USERNAME: - description: 'needed for registry login' - required: true KUBE_CONFIG: description: 'needed for kube setup' required: true diff --git a/.github/workflows/build-deploy-go.yml b/.github/workflows/build-deploy-go.yml index e29a0db..1fa4c0d 100644 --- a/.github/workflows/build-deploy-go.yml +++ b/.github/workflows/build-deploy-go.yml @@ -31,9 +31,6 @@ on: DOCKER: description: 'needed for registry login' required: true - DOCKER_USERNAME: - description: 'needed for registry login' - required: true KUBE_CONFIG: description: 'needed for kube setup' required: true diff --git a/.github/workflows/build-deploy-js.yml b/.github/workflows/build-deploy-js.yml index 1448518..9069e59 100644 --- a/.github/workflows/build-deploy-js.yml +++ b/.github/workflows/build-deploy-js.yml @@ -41,9 +41,6 @@ on: GH_PAT: description: 'needed for github login' required: true - DOCKER_USERNAME: - description: 'needed for registry login' - required: true DOCKER: description: 'needed for registry login' required: true @@ -128,12 +125,11 @@ jobs: - name: Debug secrets run: | echo ${{ secrets.DOCKER }} - echo ${{ secrets.DOCKER_USERNAME }} - name: Login to Docker Hub uses: docker/login-action@v2 with: - username: ${{ secrets.DOCKER_USERNAME }} + username: quaibuild password: ${{ secrets.DOCKER }} - name: Build Docker diff --git a/.github/workflows/build-deploy-ts.yml b/.github/workflows/build-deploy-ts.yml index f0a6d7c..3562040 100644 --- a/.github/workflows/build-deploy-ts.yml +++ b/.github/workflows/build-deploy-ts.yml @@ -40,9 +40,6 @@ on: GH_PAT: description: 'needed for github login' required: true - DOCKER_USERNAME: - description: 'needed for registry login' - required: true DOCKER: description: 'needed for registry login' required: true @@ -127,12 +124,11 @@ jobs: - name: Debug secrets run: | echo ${{ secrets.DOCKER }} - echo ${{ secrets.DOCKER_USERNAME }} - name: Login to Docker Hub uses: docker/login-action@v2 with: - username: ${{ secrets.DOCKER_USERNAME }} + username: quaibuild password: ${{ secrets.DOCKER }} - name: Build Docker diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml deleted file mode 100644 index 6972c78..0000000 --- a/.github/workflows/build-deploy.yml +++ /dev/null @@ -1,197 +0,0 @@ -name: Build and Deploy sub-action -on: - workflow_call: - inputs: - env: - required: true - type: string - awk: - required: true - type: string - rails: - required: false - type: string - default: echo "continuing." - branch: - required: false - type: string - default: ${{ github.ref }} - update_version: - required: true - type: boolean - default: true - cloud_deploy: - required: true - type: boolean - default: false - secrets: - GH_PAT: - description: 'needed for github login' - required: true - DOCKER: - description: 'needed for registry login' - required: true - KUBE_CONFIG: - description: 'needed for kube setup' - required: true - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - ref: ${{ inputs.branch }} - ssh-key: ${{ secrets.GH_PAT }} - - - name: Set Repo Name - run: echo "REPO_NAME=$(basename ${{ github.repository }})" >> $GITHUB_ENV - - - name: Set Repo Name in Camel Case - run: | - repo_name=$(basename ${{ github.repository }}) - camel_case_name=$(echo $repo_name | awk -F- '{for(i=2; i<=NF; i++) $i=toupper(substr($i,1,1)) substr($i,2); }1' OFS="") - echo "CAMEL_CASE_REPO_NAME=$camel_case_name" >> $GITHUB_ENV - - - - name: Install Volta - run: | - curl -sSLf https://get.volta.sh | bash - echo "$HOME/.volta/bin" >> $GITHUB_PATH - - - name: Log Node and Npm Versions - run: | - echo node version $(node -v) - echo npm version $(npm -v) - - - name: Install yq - run: sudo snap install yq - - - name: get Version - run: echo "VERSION=$(sudo yq eval '.version' package.json -o yaml)" >> $GITHUB_ENV - - - name: Sanity Check Branch - run: ${{ inputs.rails }} - - - name: Sync Chart.yaml version - run: yq eval -i ".appVersion=\"${{ env.VERSION }}\"" ./helm/Chart.yaml - - - name: Sync values.yaml version - run: yq eval -i ".${{ env.CAMEL_CASE_REPO_NAME }}.image.version=\"${{ env.VERSION }}\"" ./helm/values.yaml - - - name: Login to Docker Hub - uses: docker/login-action@v2 - with: - username: quaibuild - password: ${{ secrets.DOCKER }} - - - name: Build Docker - run: docker build --build-arg BUILD_ENV=${{ inputs.env }} -t quainetwork/${{ env.REPO_NAME }}:${{ env.VERSION }} . - - - - name: Push to Docker Hub - run: docker push quainetwork/${{ env.REPO_NAME }}:${{ env.VERSION }} - - - name: git tag - if: ${{ inputs.update_version }} - run: git tag ${{ env.VERSION }} && HUSKY=0 git push origin tag ${{ env.VERSION }} - - - uses: stefanzweifel/git-auto-commit-action@v4 - if: ${{ inputs.update_version }} - with: - branch: ${{ inputs.branch }} - env: - HUSKY: 0 - - deploy: - needs: build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - ref: ${{ inputs.branch }} - ssh-key: ${{ secrets.GH_PAT }} - - - name: Install Volta - run: | - curl -sSLf https://get.volta.sh | bash - echo "$HOME/.volta/bin" >> $GITHUB_PATH - - - name: Log Node and Npm Versions - run: | - echo node version $(node -v) - echo npm version $(npm -v) - - - - name: Deploy to cloud - uses: WyriHaximus/github-action-helm3@v2 - if: ${{ inputs.cloud_deploy }} - id: deploy - continue-on-error: true - with: - exec: helm upgrade ${{ env.REPO_NAME }} ./helm --install --namespace=${{ inputs.env }} --values=./helm/env/${{ inputs.env }}.values.yaml - kubeconfig: ${{ secrets.KUBE_CONFIG }} - - - name: Deploy to local from bastion - if: ${{ inputs.cloud_deploy != true }} - continue-on-error: true - run: | - echo installing kubectl... - curl -LO "https://dl.k8s.io/release/v1.25.9/bin/linux/amd64/kubectl" - chmod +x ./kubectl - sudo mv ./kubectl /usr/local/bin/kubectl - echo kubectl installed - echo setting kubeconfig... - echo "${{ secrets.KUBE_CONFIG }}" > kubeconfig.yaml - export KUBECONFIG=kubeconfig.yaml - echo kubeconfig set - echo testing kubectl connection... - kubectl get po - echo clearing bastion helm - kubectl exec -it $(kubectl get po -n kube-system -l app=bastion -o jsonpath="{.items[0].metadata.name}") -n kube-system -- rm -rf helm - echo bastion helm cleared - echo copying helm to bastion... - kubectl cp -n kube-system ./helm $(kubectl get po -n kube-system -l app=bastion -o jsonpath="{.items[0].metadata.name}"):/helm - echo helm chart copied to bastion - echo deploying helm chart from bastion... - kubectl exec -it $(kubectl get po -n kube-system -l app=bastion -o jsonpath="{.items[0].metadata.name}") -n kube-system -- helm upgrade --install ${{ env.REPO_NAME }} ./helm --namespace=${{ inputs.env }} --values=./helm/env/${{ inputs.env }}.values.yaml - echo helm chart deployed!!! - echo cleaning bastion - kubectl exec -it $(kubectl get po -n kube-system -l app=bastion -o jsonpath="{.items[0].metadata.name}") -n kube-system -- rm -rf helm - echo bastion helm cleared - echo bastion cleaned up - - - name: Install yq - run: sudo snap install yq - - - name: get Version - run: echo "VERSION=$(sudo yq eval '.version' package.json -o yaml)" >> $GITHUB_ENV - - - name: Update version environment variable - if: ${{ inputs.update_version }} - run: echo "VERSION=$(echo $VERSION | ${{ inputs.awk }})" >> $GITHUB_ENV - - - name: Update version - if: ${{ inputs.update_version }} - run: yq eval -i ".version=\"${{ env.VERSION }}\"" package.json -jP - - - name: Update Chart.yaml version - if: ${{ inputs.update_version }} - run: yq eval -P -i ".appVersion=\"${{ env.VERSION }}\"" ./helm/Chart.yaml - - name: Update values.yaml version - run: yq eval -P -i ".${{ env.CAMEL_CASE_REPO_NAME }}.image.version=\"${{ env.VERSION }}\"" ./helm/values.yaml - - - name: Update package-lock.json - continue-on-error: true - run: npm i --package-lock-only --ignore-scripts - - - name: rm kubeconfig - continue-on-error: true - run: rm kubeconfig.yaml - - - uses: stefanzweifel/git-auto-commit-action@v4 - if: ${{ inputs.update_version }} - with: - branch: ${{ inputs.branch }} - env: - HUSKY: 0 diff --git a/.github/workflows/cut-release-common.yml b/.github/workflows/cut-release-common.yml index 2bdbd34..6c31b17 100644 --- a/.github/workflows/cut-release-common.yml +++ b/.github/workflows/cut-release-common.yml @@ -28,9 +28,6 @@ on: GH_PAT: description: 'needed for github login' required: true - DOCKER_USERNAME: - description: 'needed for registry login' - required: true DOCKER: description: 'needed for registry login' required: true @@ -250,7 +247,6 @@ jobs: if: needs.detect-language.outputs.language == 'javascript' secrets: DOCKER: ${{ secrets.DOCKER }} - DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} GH_PAT: ${{ secrets.GH_PAT }} KUBE_CONFIG: ${{ secrets.KUBECONFIG_LOCAL }} DOCKER_BUILD_ARGS: ${{ secrets.DOCKER_BUILD_ARGS }} @@ -272,7 +268,6 @@ jobs: needs: [cutReleaseCandidateTS] secrets: DOCKER: ${{ secrets.DOCKER }} - DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} GH_PAT: ${{ secrets.GH_PAT }} KUBE_CONFIG: ${{ secrets.KUBECONFIG_LOCAL }} DOCKER_BUILD_ARGS: ${{ secrets.DOCKER_BUILD_ARGS }} diff --git a/.github/workflows/cut-release.yml b/.github/workflows/cut-release.yml deleted file mode 100644 index 10453ec..0000000 --- a/.github/workflows/cut-release.yml +++ /dev/null @@ -1,130 +0,0 @@ -name: Cut a new Minor Release Branch -on: workflow_dispatch -jobs: - detect-language: - runs-on: ubuntu-latest - outputs: - language: ${{ env.detected-language }} - - steps: - - uses: actions/checkout@v2 - - - name: Detect Language - id: set-language - run: | - if [[ -f "package.json" && ! -f "tsconfig.json" ]]; then - echo "detected-language=javascript" >> $GITHUB_ENV - echo "detected-language=javascript" - elif [[ -f "tsconfig.json" ]]; then - echo "detected-language=typescript" >> $GITHUB_ENV - elif [[ -f "go.mod" ]]; then - echo "detected-language=go" >> $GITHUB_ENV - elif [[ -f "mix.exs" ]]; then - echo "detected-language=elixir" >> $GITHUB_ENV - else - echo "detected-language=unknown" >> $GITHUB_ENV - fi - echo "testing" - - cutReleaseCandidateJS: - needs: detect-language - runs-on: ubuntu-latest - outputs: - branch: ${{ steps.set-branch.outputs.branch }} - if: needs.detect-language.outputs.language == 'javascript' - steps: - - uses: actions/checkout@v3 - with: - ssh-key: ${{ secrets.GH_PAT }} - - - name: Set Repo Name - run: echo "REPO_NAME=$(basename ${{ github.repository }})" >> $GITHUB_ENV - - - name: Set Repo Name in Camel Case - run: | - repo_name=$(basename ${{ github.repository }}) - camel_case_name=$(echo $repo_name | awk -F- '{for(i=2; i<=NF; i++) $i=toupper(substr($i,1,1)) substr($i,2); }1' OFS="") - echo "CAMEL_CASE_REPO_NAME=$camel_case_name" >> $GITHUB_ENV - - - - name: Install Volta - run: | - curl -sSLf https://get.volta.sh | bash - echo "$HOME/.volta/bin" >> $GITHUB_PATH - - - name: Log Node and Npm Versions - run: | - echo node version $(node -v) - echo npm version $(npm -v) - - - name: Update Version - run: | - NEW_VERSION=$(npm version prerelease --preid=rc --no-git-tag-version) - echo "VERSION=$NEW_VERSION" >> $GITHUB_ENV - - - name: Update Chart.yaml version - run: yq eval -P -i ".appVersion=\"${{ env.VERSION }}\"" ./helm/Chart.yaml - - - name: Update values.yaml version - run: yq eval -P -i ".${{ env.CAMEL_CASE_REPO_NAME }}.image.version=\"${{ env.VERSION }}\"" ./helm/values.yaml - - - name: Update version environment variable - run: echo "VERSION=$(echo $VERSION | sed 's/\.[0-9]*-.*//g')" >> $GITHUB_ENV - - - name: Store version in branch variable - id: set-branch - run: echo "branch=${{ env.VERSION }}" >> $GITHUB_OUTPUT - - - uses: stefanzweifel/git-auto-commit-action@v4 - with: - commit_message: Release ${{ env.VERSION }} - branch: ${{ env.VERSION }} - create_branch: true - - - uses: actions/checkout@v3 - with: - ssh-key: ${{ secrets.GH_PAT }} - - - name: Set Repo Name - run: echo "REPO_NAME=$(basename ${{ github.repository }})" >> $GITHUB_ENV - - - name: Set Repo Name in Camel Case - run: | - repo_name=$(basename ${{ github.repository }}) - camel_case_name=$(echo $repo_name | awk -F- '{for(i=2; i<=NF; i++) $i=toupper(substr($i,1,1)) substr($i,2); }1' OFS="") - echo "CAMEL_CASE_REPO_NAME=$camel_case_name" >> $GITHUB_ENV - - - name: Update Version - run: | - NEW_VERSION=$(npm version preminor --preid=pre --no-git-tag-version) - echo "VERSION=$NEW_VERSION" >> $GITHUB_ENV - - - name: Sync package-lock.json - run: npm i --package-lock-only --ignore-scripts - - - name: Update Chart.yaml version - run: yq eval -P -i ".appVersion=\"${{ env.VERSION }}\"" ./helm/Chart.yaml - - - name: Update values.yaml version - run: yq eval -P -i ".${{ env.CAMEL_CASE_REPO_NAME }}.image.version=\"${{ env.VERSION }}\"" ./helm/values.yaml - - - uses: stefanzweifel/git-auto-commit-action@v4 - with: - commit_message: Rev'd main to Release ${{ env.VERSION }} - branch: main - - deployReleaseCandidateJS: - uses: ./.github/workflows/build-deploy-js.yml - needs: [cutReleaseCandidateJS] - secrets: - DOCKER: ${{ secrets.DOCKER }} - DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} - GH_PAT: ${{ secrets.GH_PAT }} - KUBE_CONFIG: ${{ secrets.KUBECONFIG_LOCAL }} - with: - env: quai-sandbox - update_version_command: npm version prerelease --preid=rc --no-git-tag-version - branch: ${{ needs.cutReleaseCandidateJS.outputs.branch }} - rails: '[[ "$VERSION" =~ "rc" ]]' - update_version: true - cloud_deploy: false diff --git a/.github/workflows/deploy-dev-common.yml b/.github/workflows/deploy-dev-common.yml index 4b3e77a..2222766 100644 --- a/.github/workflows/deploy-dev-common.yml +++ b/.github/workflows/deploy-dev-common.yml @@ -23,9 +23,6 @@ on: GH_PAT: description: 'needed for github login' required: true - DOCKER_USERNAME: - description: 'needed for registry login' - required: true DOCKER: description: 'needed for registry login' required: true @@ -80,7 +77,6 @@ jobs: uses: ./.github/workflows/build-deploy-ts.yml secrets: DOCKER: ${{ secrets.DOCKER }} - DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} GH_PAT: ${{ secrets.GH_PAT }} KUBE_CONFIG: ${{ secrets.KUBECONFIG_LOCAL }} DOCKER_BUILD_ARGS: ${{ secrets.DOCKER_BUILD_ARGS }} @@ -100,7 +96,6 @@ jobs: uses: ./.github/workflows/build-deploy-js.yml secrets: DOCKER: ${{ secrets.DOCKER }} - DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} GH_PAT: ${{ secrets.GH_PAT }} KUBE_CONFIG: ${{ secrets.KUBECONFIG_LOCAL }} DOCKER_BUILD_ARGS: ${{ secrets.DOCKER_BUILD_ARGS }} @@ -120,7 +115,6 @@ jobs: uses: ./.github/workflows/build-deploy-go.yml secrets: DOCKER: ${{ secrets.DOCKER }} - DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} GH_PAT: ${{ secrets.GH_PAT }} KUBE_CONFIG: ${{ secrets.KUBECONFIG_LOCAL }} with: @@ -135,7 +129,6 @@ jobs: uses: ./.github/workflows/build-deploy-elixir.yml secrets: DOCKER: ${{ secrets.DOCKER }} - DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} GH_PAT: ${{ secrets.GH_PAT }} KUBE_CONFIG: ${{ secrets.KUBECONFIG_LOCAL }} with: diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml deleted file mode 100644 index 15b668f..0000000 --- a/.github/workflows/deploy-dev.yml +++ /dev/null @@ -1,102 +0,0 @@ -name: Build and Deploy to Dev - -on: - pull_request: - types: [closed] - branches: [ "main" ] - -jobs: - - detect-language: - runs-on: ubuntu-latest - outputs: - language: ${{ env.detected-language }} - - steps: - - uses: actions/checkout@v2 - - - name: Detect Language - id: set-language - run: | - if [[ -f "package.json" && ! -f "tsconfig.json" ]]; then - echo "detected-language=javascript" >> $GITHUB_ENV - echo "detected-language=javascript" - elif [[ -f "tsconfig.json" ]]; then - echo "detected-language=typescript" >> $GITHUB_ENV - elif [[ -f "go.mod" ]]; then - echo "detected-language=go" >> $GITHUB_ENV - elif [[ -f "mix.exs" ]]; then - echo "detected-language=elixir" >> $GITHUB_ENV - else - echo "detected-language=unknown" >> $GITHUB_ENV - fi - echo "testing" - - print-detected-language: - needs: detect-language - runs-on: ubuntu-latest - steps: - - name: Print Detected Language - run: | - echo "Detected Language: ${{ needs.detect-language.outputs.language }}" - - - buildDeployDevTS: - needs: detect-language - if: needs.detect-language.outputs.language == 'typescript' - uses: ./.github/workflows/build-deploy-ts.yml - secrets: - DOCKER: ${{ secrets.DOCKER }} - DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} - GH_PAT: ${{ secrets.GH_PAT }} - KUBE_CONFIG: ${{ secrets.KUBECONFIG_LOCAL }} - with: - env: quai-dev - awk: awk -F. '{print $1"."$2"."$3"."$4+1}' - update_version: true - cloud_deploy: false - - buildDeployDevJS: - needs: detect-language - if: needs.detect-language.outputs.language == 'javascript' - uses: ./.github/workflows/build-deploy-js.yml - secrets: - DOCKER: ${{ secrets.DOCKER }} - DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} - GH_PAT: ${{ secrets.GH_PAT }} - KUBE_CONFIG: ${{ secrets.KUBECONFIG_LOCAL }} - with: - env: quai-dev - update_version_command: npm version prerelease --preid=pre --no-git-tag-version - update_version: true - cloud_deploy: false - - buildDeployDevGo: - needs: detect-language - if: needs.detect-language.outputs.language == 'go' - uses: ./.github/workflows/build-deploy-go.yml - secrets: - DOCKER: ${{ secrets.DOCKER }} - DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} - GH_PAT: ${{ secrets.GH_PAT }} - KUBE_CONFIG: ${{ secrets.KUBECONFIG_LOCAL }} - with: - env: quai-dev - awk: awk -F. '{print $1"."$2"."$3"."$4+1}' - update_version: true - cloud_deploy: false - - buildDeployDevElixir: - needs: detect-language - if: needs.detect-language.outputs.language == 'elixir' - uses: ./.github/workflows/build-deploy-elixir.yml - secrets: - DOCKER: ${{ secrets.DOCKER }} - DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} - GH_PAT: ${{ secrets.GH_PAT }} - KUBE_CONFIG: ${{ secrets.KUBECONFIG_LOCAL }} - with: - env: quai-dev - awk: awk -F. '{print $1"."$2"."$3"."$4+1}' - update_version: true - cloud_deploy: false diff --git a/.github/workflows/deploy-prod-common.yml b/.github/workflows/deploy-prod-common.yml index 392852c..b89b788 100644 --- a/.github/workflows/deploy-prod-common.yml +++ b/.github/workflows/deploy-prod-common.yml @@ -23,9 +23,6 @@ on: GH_PAT: description: 'needed for github login' required: true - DOCKER_USERNAME: - description: 'needed for registry login' - required: true DOCKER: description: 'needed for registry login' required: true @@ -116,7 +113,6 @@ jobs: uses: ./.github/workflows/build-deploy-js.yml secrets: DOCKER: ${{ secrets.DOCKER }} - DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} GH_PAT: ${{ secrets.GH_PAT }} KUBE_CONFIG: ${{ secrets.KUBECONFIG_PROD }} DOCKER_BUILD_ARGS: ${{ secrets.DOCKER_BUILD_ARGS }} @@ -136,7 +132,6 @@ jobs: uses: ./.github/workflows/build-deploy-ts.yml secrets: DOCKER: ${{ secrets.DOCKER }} - DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} GH_PAT: ${{ secrets.GH_PAT }} KUBE_CONFIG: ${{ secrets.KUBECONFIG_PROD }} DOCKER_BUILD_ARGS: ${{ secrets.DOCKER_BUILD_ARGS }} diff --git a/.github/workflows/deploy-sandbox-common.yml b/.github/workflows/deploy-sandbox-common.yml index 7c09d1e..98674aa 100644 --- a/.github/workflows/deploy-sandbox-common.yml +++ b/.github/workflows/deploy-sandbox-common.yml @@ -23,9 +23,6 @@ on: GH_PAT: description: 'needed for github login' required: true - DOCKER_USERNAME: - description: 'needed for registry login' - required: true DOCKER: description: 'needed for registry login' required: true @@ -70,7 +67,6 @@ jobs: uses: ./.github/workflows/build-deploy-js.yml secrets: DOCKER: ${{ secrets.DOCKER }} - DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} GH_PAT: ${{ secrets.GH_PAT }} KUBE_CONFIG: ${{ secrets.KUBECONFIG_LOCAL }} DOCKER_BUILD_ARGS: ${{ secrets.DOCKER_BUILD_ARGS }} @@ -91,7 +87,6 @@ jobs: uses: ./.github/workflows/build-deploy-ts.yml secrets: DOCKER: ${{ secrets.DOCKER }} - DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} GH_PAT: ${{ secrets.GH_PAT }} KUBE_CONFIG: ${{ secrets.KUBECONFIG_LOCAL }} DOCKER_BUILD_ARGS: ${{ secrets.DOCKER_BUILD_ARGS }} diff --git a/.github/workflows/deploy-sandbox.yml b/.github/workflows/deploy-sandbox.yml deleted file mode 100644 index 2902673..0000000 --- a/.github/workflows/deploy-sandbox.yml +++ /dev/null @@ -1,47 +0,0 @@ -name: Build and Deploy to Sandbox -on: - pull_request: - types: [closed] - branches: - - 'v?[0-9]+.[0-9]+' -jobs: - detect-language: - runs-on: ubuntu-latest - outputs: - language: ${{ env.detected-language }} - - steps: - - uses: actions/checkout@v2 - - - name: Detect Language - id: set-language - run: | - if [[ -f "package.json" && ! -f "tsconfig.json" ]]; then - echo "detected-language=javascript" >> $GITHUB_ENV - echo "detected-language=javascript" - elif [[ -f "tsconfig.json" ]]; then - echo "detected-language=typescript" >> $GITHUB_ENV - elif [[ -f "go.mod" ]]; then - echo "detected-language=go" >> $GITHUB_ENV - elif [[ -f "mix.exs" ]]; then - echo "detected-language=elixir" >> $GITHUB_ENV - else - echo "detected-language=unknown" >> $GITHUB_ENV - fi - echo "testing" - - buildDeploySandboxJS: - needs: detect-language - if: github.event.pull_request.merged == true && needs.detect-language.outputs.language == 'javascript' - uses: ./.github/workflows/build-deploy-js.yml - secrets: - DOCKER: ${{ secrets.DOCKER }} - DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} - GH_PAT: ${{ secrets.GH_PAT }} - KUBE_CONFIG: ${{ secrets.KUBECONFIG_LOCAL }} - with: - env: quai-sandbox - update_version_command: npm version prerelease --preid=rc --no-git-tag-version - rails: '[[ ! "$VERSION" =~ "pre" ]]' - update_version: true - cloud_deploy: false diff --git a/.github/workflows/test-remote-cut-workflow.yml b/.github/workflows/test-remote-cut-workflow.yml index a3409a0..247c99f 100644 --- a/.github/workflows/test-remote-cut-workflow.yml +++ b/.github/workflows/test-remote-cut-workflow.yml @@ -17,7 +17,6 @@ jobs: skip_deploy: true secrets: DOCKER: ${{ secrets.DOCKER }} - DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} GH_PAT: ${{ secrets.GH_PAT }} KUBE_CONFIG: ${{ secrets.KUBECONFIG_LOCAL }} BUILD_ARGS: 'BUILD_ENV=production' diff --git a/.github/workflows/test-remote-dev-manual-workflow.yml b/.github/workflows/test-remote-dev-manual-workflow.yml index 279eb37..d3282f0 100644 --- a/.github/workflows/test-remote-dev-manual-workflow.yml +++ b/.github/workflows/test-remote-dev-manual-workflow.yml @@ -16,7 +16,6 @@ jobs: skip_deploy: true secrets: DOCKER: ${{ secrets.DOCKER }} - DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} GH_PAT: ${{ secrets.GH_PAT }} KUBE_CONFIG: ${{ secrets.KUBECONFIG_LOCAL }} BUILD_ARGS: 'BUILD_ENV=production' diff --git a/.github/workflows/test-remote-dev-workflow.yml b/.github/workflows/test-remote-dev-workflow.yml index c6139c9..0edca8a 100644 --- a/.github/workflows/test-remote-dev-workflow.yml +++ b/.github/workflows/test-remote-dev-workflow.yml @@ -13,7 +13,6 @@ jobs: skip_deploy: true secrets: DOCKER: ${{ secrets.DOCKER }} - DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} GH_PAT: ${{ secrets.GH_PAT }} KUBE_CONFIG: ${{ secrets.KUBECONFIG_LOCAL }} BUILD_ARGS: 'BUILD_ENV=production' diff --git a/.github/workflows/test-remote-prod-workflow.yml b/.github/workflows/test-remote-prod-workflow.yml index ebcdd38..e56ad7d 100644 --- a/.github/workflows/test-remote-prod-workflow.yml +++ b/.github/workflows/test-remote-prod-workflow.yml @@ -10,7 +10,6 @@ jobs: skip_deploy: false secrets: DOCKER: ${{ secrets.DOCKER }} - DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} GH_PAT: ${{ secrets.GH_PAT }} KUBE_CONFIG: ${{ secrets.KUBECONFIG_LOCAL }} BUILD_ARGS: 'BUILD_ENV=production' diff --git a/.github/workflows/test-remote-sandbox-workflow.yml b/.github/workflows/test-remote-sandbox-workflow.yml index 9373536..a4ef104 100644 --- a/.github/workflows/test-remote-sandbox-workflow.yml +++ b/.github/workflows/test-remote-sandbox-workflow.yml @@ -14,7 +14,6 @@ jobs: skip_deploy: true secrets: DOCKER: ${{ secrets.DOCKER }} - DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} GH_PAT: ${{ secrets.GH_PAT }} KUBE_CONFIG: ${{ secrets.KUBECONFIG_LOCAL }} BUILD_ARGS: 'BUILD_ENV=production'