From 0497c6c3805e28b9af06971b5526b8834fd10696 Mon Sep 17 00:00:00 2001 From: Sigri Date: Tue, 11 Jun 2024 14:57:10 +0200 Subject: [PATCH] Update root dir & var env --- .github/workflows/branch.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/branch.yml b/.github/workflows/branch.yml index 46583f5..1beb557 100644 --- a/.github/workflows/branch.yml +++ b/.github/workflows/branch.yml @@ -70,11 +70,11 @@ jobs: - name: Update branch environment run: | - ssh staging 'export DOCKER_BRANCH=${{ github.ref_name }} - cd /home/realt/docker/dashboard-v2/preprod - git pull origin develop + ssh staging 'export DOCKER_BRANCH=${{ github.ref_name }} DOCKER_REGISTRY=${{ secrets.DOCKER_REGISTRY }} + cd /var/docker/dashboard-v2/${DOCKER_BRANCH} + git pull origin ${DOCKER_BRANCH} docker compose --file docker-compose-branch.yml pull - docker login -u ${{ secrets.DOCKER_LOGIN }} -p ${{ secrets.DOCKER_PASSWD }} ${{ secrets.DOCKER_REGISTRY }} + docker login -u ${{ secrets.DOCKER_LOGIN }} -p ${{ secrets.DOCKER_PASSWD }} ${DOCKER_REGISTRY} NEXT_PUBLIC_THEGRAPH_API_KEY=${{ secrets.NEXT_PUBLIC_THEGRAPH_API_KEY }} COMMUNITY_API_KEY=${{ secrets.COMMUNITY_API_KEY }} docker compose --project-name ${{ github.ref_name }}-dashboard --file docker-compose-branch.yml up -d' env: NEXT_PUBLIC_THEGRAPH_API_KEY: ${{ secrets.NEXT_PUBLIC_THEGRAPH_API_KEY }}