Skip to content

Commit

Permalink
Merge pull request #407 from layer5labs/leecalcote-patch-1-2
Browse files Browse the repository at this point in the history
Disable deploy production in AWS EC2
  • Loading branch information
leecalcote authored Nov 21, 2024
2 parents 1fad1f5 + 3d0c15b commit 2f01980
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/meshery-cloud-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -264,28 +264,28 @@ jobs:
TOKEN=${{ secrets.GLOBAL_TOKEN }}
tags: ${{ steps.meta.outputs.tags }}
platforms: linux/amd64
- name: Deploy production
uses: appleboy/ssh-action@master
env:
GIT_VERSION: ${{inputs.release-version}}
GIT_COMMITSHA: ${{ github.sha }}
with:
host: ${{ secrets.MESHERY_CLOUD_AWS_PROD_HOST }}
username: ${{ secrets.MESHERY_CLOUD_AWS_PROD_USERNAME }}
key: ${{ secrets.MESHERY_CLOUD_AWS_PROD_KEY }}
port: 22
envs: GIT_VERSION,GIT_COMMITSHA
script: |
sudo su
sudo su - -c "whoami"
echo $GIT_VERSION
cd meshery-cloud
sudo su - -c "git pull https://l5io:${{ secrets.GH_ACCESS_TOKEN }}@github.com/layer5io/meshery-cloud"
sudo ./install/scripts/git-pull.sh
docker pull layer5/meshery-cloud:production-$GIT_VERSION
make prod-deploy GIT_VERSION=$GIT_VERSION
docker system prune -f
docker image prune -a -f
# - name: Deploy production in AWS EC2
# uses: appleboy/ssh-action@master
# env:
# GIT_VERSION: ${{inputs.release-version}}
# GIT_COMMITSHA: ${{ github.sha }}
# with:
# host: ${{ secrets.MESHERY_CLOUD_AWS_PROD_HOST }}
# username: ${{ secrets.MESHERY_CLOUD_AWS_PROD_USERNAME }}
# key: ${{ secrets.MESHERY_CLOUD_AWS_PROD_KEY }}
# port: 22
# envs: GIT_VERSION,GIT_COMMITSHA
# script: |
# sudo su
# sudo su - -c "whoami"
# echo $GIT_VERSION
# cd meshery-cloud
# sudo su - -c "git pull https://l5io:${{ secrets.GH_ACCESS_TOKEN }}@github.com/layer5io/meshery-cloud"
# sudo ./install/scripts/git-pull.sh
# docker pull layer5/meshery-cloud:production-$GIT_VERSION
# make prod-deploy GIT_VERSION=$GIT_VERSION
# docker system prune -f
# docker image prune -a -f
- name: Deploy production on metal03
uses: appleboy/ssh-action@master
env:
Expand Down

0 comments on commit 2f01980

Please sign in to comment.