Skip to content

Commit

Permalink
ci: Deploy wundergraph (#65)
Browse files Browse the repository at this point in the history
Co-authored-by: valia fetisov <[email protected]>
  • Loading branch information
KirillDogadin-std and valiafetisov authored Sep 6, 2023
1 parent 5eb82a6 commit 42de81f
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/build-and-deploy-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,18 @@ jobs:
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Build and Push switchboard-wundergraph
uses: docker/build-push-action@v3
with:
context: ./wundergraph
platforms: linux/amd64
push: true
tags: |
ghcr.io/sidestream-tech/switchboard/wundergraph:main
ghcr.io/sidestream-tech/switchboard/wundergraph:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Build and Push switchboard-frontend
uses: docker/build-push-action@v3
with:
Expand Down Expand Up @@ -79,7 +91,14 @@ jobs:
cmd: yq -i '(.image.tag ="${{ github.sha }}") | (.commitShortSHA ="${{ github.sha }}") | (.releaseTag ="${{ github.ref_name }}")' $VALUES_FILE
env:
VALUES_FILE: "k8s-projects/switchboard-api/staging/values-api.yml"


- name: Update Value File Wundergraph
uses: mikefarah/yq@master
with:
cmd: yq -i '(.image.tag ="${{ github.sha }}") | (.commitShortSHA ="${{ github.sha }}") | (.releaseTag ="${{ github.ref_name }}")' $VALUES_FILE
env:
VALUES_FILE: "k8s-projects/switchboard-api/staging/values-wundergraph.yml"

- name: Update Value File Frontend
uses: mikefarah/yq@master
with:
Expand Down

0 comments on commit 42de81f

Please sign in to comment.