Skip to content

Commit

Permalink
Merge pull request #34 from crestalnetwork/fix/deploy-version
Browse files Browse the repository at this point in the history
Fix: deploy version bug
  • Loading branch information
hyacinthus authored Jan 7, 2025
2 parents bd2410d + 96a6dab commit 3aefefd
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,22 +92,26 @@ jobs:
- name: Deploy to Amazon EKS Dev
if: ${{ github.event_name == 'release' && github.event.action == 'prereleased' }}
run: |
VERSION=${{ github.event.release.tag_name }}
VERSION_NO_V=${VERSION#v}
aws eks update-kubeconfig --region ${{ secrets.AWS_REGION }} --name ${{ secrets.EKS_DEV_CLUSTER }}
kubectl version
kubectl set image -n testnet-dev deployment/intent-api intent-api=crestal/intentkit:${{ github.event.release.tag_name }}
kubectl set image -n testnet-dev deployment/intent-autonomous intent-autonomous=crestal/intentkit:${{ github.event.release.tag_name }}
kubectl set image -n testnet-dev deployment/intent-twitter intent-twitter=crestal/intentkit:${{ github.event.release.tag_name }}
kubectl set image -n testnet-dev deployment/intent-tg intent-tg=crestal/intentkit:${{ github.event.release.tag_name }}
kubectl set image -n testnet-dev deployment/intent-api intent-api=crestal/intentkit:${VERSION_NO_V}
kubectl set image -n testnet-dev deployment/intent-autonomous intent-autonomous=crestal/intentkit:${VERSION_NO_V}
kubectl set image -n testnet-dev deployment/intent-twitter intent-twitter=crestal/intentkit:${VERSION_NO_V}
kubectl set image -n testnet-dev deployment/intent-tg intent-tg=crestal/intentkit:${VERSION_NO_V}
- name: Deploy to Amazon EKS Prod
if: ${{ github.event_name == 'release' && github.event.action == 'released' }}
run: |
VERSION=${{ github.event.release.tag_name }}
VERSION_NO_V=${VERSION#v}
aws eks update-kubeconfig --region ${{ secrets.AWS_REGION }} --name ${{ secrets.EKS_PROD_CLUSTER }}
kubectl version
kubectl set image -n testnet-prod deployment/intent-api intent-api=crestal/intentkit:${{ github.event.release.tag_name }}
kubectl set image -n testnet-prod deployment/intent-autonomous intent-autonomous=crestal/intentkit:${{ github.event.release.tag_name }}
kubectl set image -n testnet-prod deployment/intent-twitter intent-twitter=crestal/intentkit:${{ github.event.release.tag_name }}
kubectl set image -n testnet-prod deployment/intent-tg intent-tg=crestal/intentkit:${{ github.event.release.tag_name }}
kubectl set image -n testnet-prod deployment/intent-api intent-api=crestal/intentkit:${VERSION_NO_V}
kubectl set image -n testnet-prod deployment/intent-autonomous intent-autonomous=crestal/intentkit:${VERSION_NO_V}
kubectl set image -n testnet-prod deployment/intent-twitter intent-twitter=crestal/intentkit:${VERSION_NO_V}
kubectl set image -n testnet-prod deployment/intent-tg intent-tg=crestal/intentkit:${VERSION_NO_V}
- name: Build Success
if: ${{ success() }}
Expand Down

0 comments on commit 3aefefd

Please sign in to comment.