mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-01 17:52:04 +08:00
ci: 👷 fix testing and staging deployments (#1980)
Signed-off-by: Prashant Shahi <prashant@signoz.io> Signed-off-by: Prashant Shahi <prashant@signoz.io>
This commit is contained in:
parent
7b86022280
commit
ebbad5812f
9
.github/workflows/staging-deployment.yaml
vendored
9
.github/workflows/staging-deployment.yaml
vendored
@ -13,24 +13,25 @@ jobs:
|
|||||||
- name: Executing remote ssh commands using ssh key
|
- name: Executing remote ssh commands using ssh key
|
||||||
uses: appleboy/ssh-action@v0.1.6
|
uses: appleboy/ssh-action@v0.1.6
|
||||||
env:
|
env:
|
||||||
DOCKER_TAG: develop
|
GITHUB_BRANCH: develop
|
||||||
GITHUB_SHA: ${{ github.sha }}
|
GITHUB_SHA: ${{ github.sha }}
|
||||||
with:
|
with:
|
||||||
host: ${{ secrets.HOST_DNS }}
|
host: ${{ secrets.HOST_DNS }}
|
||||||
username: ${{ secrets.USERNAME }}
|
username: ${{ secrets.USERNAME }}
|
||||||
key: ${{ secrets.EC2_SSH_KEY }}
|
key: ${{ secrets.EC2_SSH_KEY }}
|
||||||
envs: DOCKER_TAG,GITHUB_SHA
|
envs: GITHUB_BRANCH,GITHUB_SHA
|
||||||
command_timeout: 60m
|
command_timeout: 60m
|
||||||
script: |
|
script: |
|
||||||
echo "DOCKER_TAG: ${DOCKER_TAG}"
|
echo "GITHUB_BRANCH: ${GITHUB_BRANCH}"
|
||||||
echo "GITHUB_SHA: ${GITHUB_SHA}"
|
echo "GITHUB_SHA: ${GITHUB_SHA}"
|
||||||
|
export DOCKER_TAG="${GITHUB_SHA:0:7}" # needed for child process to access it
|
||||||
docker system prune --force
|
docker system prune --force
|
||||||
cd ~/signoz
|
cd ~/signoz
|
||||||
git status
|
git status
|
||||||
git add .
|
git add .
|
||||||
git stash push -m "stashed on $(date --iso-8601=seconds)"
|
git stash push -m "stashed on $(date --iso-8601=seconds)"
|
||||||
git fetch origin
|
git fetch origin
|
||||||
git checkout develop
|
git checkout ${GITHUB_BRANCH}
|
||||||
git pull
|
git pull
|
||||||
make build-ee-query-service-amd64
|
make build-ee-query-service-amd64
|
||||||
make build-frontend-amd64
|
make build-frontend-amd64
|
||||||
|
4
.github/workflows/testing-deployment.yaml
vendored
4
.github/workflows/testing-deployment.yaml
vendored
@ -15,17 +15,17 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_BRANCH: ${{ github.head_ref || github.ref_name }}
|
GITHUB_BRANCH: ${{ github.head_ref || github.ref_name }}
|
||||||
GITHUB_SHA: ${{ github.sha }}
|
GITHUB_SHA: ${{ github.sha }}
|
||||||
DEV_BUILD: "1"
|
|
||||||
with:
|
with:
|
||||||
host: ${{ secrets.HOST_DNS }}
|
host: ${{ secrets.HOST_DNS }}
|
||||||
username: ${{ secrets.USERNAME }}
|
username: ${{ secrets.USERNAME }}
|
||||||
key: ${{ secrets.EC2_SSH_KEY }}
|
key: ${{ secrets.EC2_SSH_KEY }}
|
||||||
envs: GITHUB_BRANCH,GITHUB_SHA,DEV_BUILD
|
envs: GITHUB_BRANCH,GITHUB_SHA
|
||||||
command_timeout: 60m
|
command_timeout: 60m
|
||||||
script: |
|
script: |
|
||||||
echo "GITHUB_BRANCH: ${GITHUB_BRANCH}"
|
echo "GITHUB_BRANCH: ${GITHUB_BRANCH}"
|
||||||
echo "GITHUB_SHA: ${GITHUB_SHA}"
|
echo "GITHUB_SHA: ${GITHUB_SHA}"
|
||||||
export DOCKER_TAG="${GITHUB_SHA:0:7}" # needed for child process to access it
|
export DOCKER_TAG="${GITHUB_SHA:0:7}" # needed for child process to access it
|
||||||
|
export DEV_BUILD="1"
|
||||||
docker system prune --force
|
docker system prune --force
|
||||||
cd ~/signoz
|
cd ~/signoz
|
||||||
git status
|
git status
|
||||||
|
Loading…
x
Reference in New Issue
Block a user