From 36610c809e8a99fa105aa8dfdb9ee9700326e287 Mon Sep 17 00:00:00 2001 From: Prashant Shahi Date: Fri, 31 Mar 2023 00:12:29 +0545 Subject: [PATCH] CI: deployment workflow changes (#2527) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: 📌 bump up appleboy/ssh-action to v0.1.8 Signed-off-by: Prashant Shahi * ci(deployments): 🔧 use SSH_KEY secret Signed-off-by: Prashant Shahi * ci(staging-deployment): 👷 use main tag of OtelCollectors in Staging Signed-off-by: Prashant Shahi --------- Signed-off-by: Prashant Shahi --- .github/workflows/staging-deployment.yaml | 6 ++++-- .github/workflows/testing-deployment.yaml | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/staging-deployment.yaml b/.github/workflows/staging-deployment.yaml index c655d69df2..6de51f4733 100644 --- a/.github/workflows/staging-deployment.yaml +++ b/.github/workflows/staging-deployment.yaml @@ -11,21 +11,23 @@ jobs: environment: staging steps: - name: Executing remote ssh commands using ssh key - uses: appleboy/ssh-action@v0.1.6 + uses: appleboy/ssh-action@v0.1.8 env: GITHUB_BRANCH: develop GITHUB_SHA: ${{ github.sha }} with: host: ${{ secrets.HOST_DNS }} username: ${{ secrets.USERNAME }} - key: ${{ secrets.EC2_SSH_KEY }} + key: ${{ secrets.SSH_KEY }} envs: GITHUB_BRANCH,GITHUB_SHA command_timeout: 60m script: | echo "GITHUB_BRANCH: ${GITHUB_BRANCH}" echo "GITHUB_SHA: ${GITHUB_SHA}" export DOCKER_TAG="${GITHUB_SHA:0:7}" # needed for child process to access it + export OTELCOL_TAG="main" docker system prune --force + docker pull signoz/signoz-otel-collector:main cd ~/signoz git status git add . diff --git a/.github/workflows/testing-deployment.yaml b/.github/workflows/testing-deployment.yaml index d122291d42..d65a4e8bbc 100644 --- a/.github/workflows/testing-deployment.yaml +++ b/.github/workflows/testing-deployment.yaml @@ -11,14 +11,14 @@ jobs: if: ${{ github.event.label.name == 'testing-deploy' }} steps: - name: Executing remote ssh commands using ssh key - uses: appleboy/ssh-action@v0.1.6 + uses: appleboy/ssh-action@v0.1.8 env: GITHUB_BRANCH: ${{ github.head_ref || github.ref_name }} GITHUB_SHA: ${{ github.sha }} with: host: ${{ secrets.HOST_DNS }} username: ${{ secrets.USERNAME }} - key: ${{ secrets.EC2_SSH_KEY }} + key: ${{ secrets.SSH_KEY }} envs: GITHUB_BRANCH,GITHUB_SHA command_timeout: 60m script: |