Skip to content

Commit

Permalink
Update build-deploy.yml for x-gazer
Browse files Browse the repository at this point in the history
  • Loading branch information
omidasadpour authored Jul 20, 2023
1 parent 978a6a3 commit 1d66a46
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
branches:
- staging
- main
- xsocial-cms
- x-gazer

jobs:
Expand Down Expand Up @@ -78,8 +77,8 @@ jobs:
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new

- if: ${{ github.ref == 'refs/heads/xsocial-cms' }}
name: Build staging image
- if: ${{ github.ref == 'refs/heads/x-gazer' }}
name: Build x-gazer image
uses: docker/build-push-action@v3
with:
context: .
Expand Down Expand Up @@ -197,11 +196,11 @@ jobs:
cd /root/webapp
./update.sh
xsocial_deploy:
gazer_deploy:
name: xsocial-deploy
needs: front_build
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/xsocial-cms' }}
if: ${{ github.ref == 'refs/heads/x-gazer' }}
steps:
- name: Checkout main
uses: actions/checkout@v3
Expand Down

0 comments on commit 1d66a46

Please sign in to comment.