@@ -43,36 +43,36 @@ jobs:
4343 username : ${{ github.actor }}
4444 password : ${{ secrets.GITHUB_TOKEN }}
4545
46- # - name: Verify Google Client ID Secret
47- # run: |
48- # if [ -z "${{ secrets.GOOGLE_CLIENT_ID }}" ]; then
49- # echo "GOOGLE_CLIENT_ID secret is NOT available"
50- # exit 1
51- # fi
52-
53- # - name: Build and push Clients image
54- # uses: docker/build-push-action@v4
55- # with:
56- # context: .
57- # file: ./Clients/Dockerfile
58- # platforms: linux/amd64,linux/arm64
59- # push: true
60- # tags: |
61- # ghcr.io/${{ github.repository_owner }}/verifywise-frontend-saas:test
62- # build-args: |
63- # VITE_GOOGLE_CLIENT_ID=${{ secrets.GOOGLE_CLIENT_ID }}
64- # VITE_SLACK_CLIENT_ID=${{ secrets.SLACK_CLIENT_ID }}
65- # VITE_APP_VERSION=${{ env.TAG }}
66- # VITE_BRANDFETCH_API_KEY=${{ secrets.VITE_BRANDFETCH_API_KEY }}
67-
68- # - name: Build and push Servers image
69- # uses: docker/build-push-action@v4
70- # with:
71- # context: ./Servers
72- # platforms: linux/amd64,linux/arm64
73- # push: true
74- # tags: |
75- # ghcr.io/${{ github.repository_owner }}/verifywise-backend-saas:test
46+ - name : Verify Google Client ID Secret
47+ run : |
48+ if [ -z "${{ secrets.GOOGLE_CLIENT_ID }}" ]; then
49+ echo "GOOGLE_CLIENT_ID secret is NOT available"
50+ exit 1
51+ fi
52+
53+ - name : Build and push Clients image
54+ uses : docker/build-push-action@v4
55+ with :
56+ context : .
57+ file : ./Clients/Dockerfile
58+ platforms : linux/amd64,linux/arm64
59+ push : true
60+ tags : |
61+ ghcr.io/${{ github.repository_owner }}/verifywise-frontend-saas:test
62+ build-args : |
63+ VITE_GOOGLE_CLIENT_ID=${{ secrets.GOOGLE_CLIENT_ID }}
64+ VITE_SLACK_CLIENT_ID=${{ secrets.SLACK_CLIENT_ID }}
65+ VITE_APP_VERSION=${{ env.TAG }}
66+ VITE_BRANDFETCH_API_KEY=${{ secrets.VITE_BRANDFETCH_API_KEY }}
67+
68+ - name : Build and push Servers image
69+ uses : docker/build-push-action@v4
70+ with :
71+ context : ./Servers
72+ platforms : linux/amd64,linux/arm64
73+ push : true
74+ tags : |
75+ ghcr.io/${{ github.repository_owner }}/verifywise-backend-saas:test
7676
7777 - name : Clean up after Servers build
7878 run : |
@@ -96,14 +96,14 @@ jobs:
9696 tags : |
9797 ghcr.io/${{ github.repository_owner }}/verifywise-eval-server-saas:test
9898
99- # - name: Deploy to Testing
100- # uses: appleboy/ssh-action@v0.1.5
101- # with:
102- # host: ${{ secrets.TEST_HOST }}
103- # username: ${{ secrets.TEST_USER }}
104- # key: ${{ secrets.TEST_SSH_KEY }}
105- # script: |
106- # cd /root/verifywise/_saas_deployment
107- # docker-compose --env-file .env.prod down
108- # docker images --format "table {{.Repository}}:{{.Tag}}\t{{.ID}}" | grep -v -E "(redis|postgres|admin)" | awk 'NR>1 {print $2}' | xargs -r docker rmi -f || true
109- # ./install.sh
99+ - name : Deploy to Testing
100+ uses : appleboy/ssh-action@v0.1.5
101+ with :
102+ host : ${{ secrets.TEST_HOST }}
103+ username : ${{ secrets.TEST_USER }}
104+ key : ${{ secrets.TEST_SSH_KEY }}
105+ script : |
106+ cd /root/verifywise/_saas_deployment
107+ docker-compose --env-file .env.prod down
108+ docker images --format "table {{.Repository}}:{{.Tag}}\t{{.ID}}" | grep -v -E "(redis|postgres|admin)" | awk 'NR>1 {print $2}' | xargs -r docker rmi -f || true
109+ ./install.sh
0 commit comments