File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525 # - codebuild-arda-credit-${{ github.run_id }}-${{ github.run_attempt }} image:ubuntu-7.0 instance-size:2xlarge
2626 strategy :
2727 matrix :
28- service : [frontend, backend]
28+ include :
29+ - service : frontend
30+ deploy_token_secret : EASYPANEL_DEPLOY_TOKEN_FRONTEND
31+ - service : backend
32+ deploy_token_secret : EASYPANEL_DEPLOY_TOKEN_BACKEND
2933 permissions :
3034 contents : read
3135 packages : write
9195 cache-from : type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_BASE }}/${{ env.REPO_NAME }}-${{ matrix.service }}:latest
9296 cache-to : type=inline
9397
94- deploy-easypanel :
95- needs : build-and-push
96- if : github.ref == 'refs/heads/main'
97- uses : ./.github/workflows/easypanel.yml
98- secrets :
99- EASYPANEL_DEPLOY_TOKEN : ${{ secrets.EASYPANEL_DEPLOY_TOKEN }}
98+ - name : Trigger Easypanel Deployment for ${{ matrix.service }}
99+ if : github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
100+ env :
101+ DEPLOY_TOKEN : ${{ secrets[matrix.deploy_token_secret] }}
102+ run : |
103+ curl -X POST \
104+ https://panel.arda.xyz/api/deploy/$DEPLOY_TOKEN
You can’t perform that action at this time.
0 commit comments