Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prod #167

Closed
wants to merge 62 commits into from
Closed

Prod #167

Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
abe7175
Merge pull request #31 from NetSepio/main
devsisingh Jun 15, 2024
366e908
Merge pull request #32 from NetSepio/main
devsisingh Jun 15, 2024
8384966
Merge pull request #34 from NetSepio/main
devsisingh Jun 15, 2024
94d0423
Merge pull request #36 from NetSepio/main
devsisingh Jun 17, 2024
f78969a
Merge pull request #38 from NetSepio/main
devsisingh Jun 17, 2024
1644d12
Merge pull request #40 from NetSepio/main
devsisingh Jun 17, 2024
d7ad359
Merge pull request #41 from NetSepio/main
devsisingh Jun 18, 2024
a206f36
Merge pull request #42 from NetSepio/main
devsisingh Jun 18, 2024
d708c4e
Merge pull request #43 from NetSepio/main
devsisingh Jun 18, 2024
55b6a5c
Merge pull request #45 from NetSepio/main
devsisingh Jun 19, 2024
9421fce
Merge pull request #47 from NetSepio/main
devsisingh Jun 21, 2024
658d8b0
Merge pull request #51 from NetSepio/main
Rushikeshnimkar Jun 22, 2024
78a220b
Merge pull request #52 from NetSepio/main
devsisingh Jun 23, 2024
a99d3fb
Merge pull request #53 from NetSepio/main
devsisingh Jun 24, 2024
79b168d
Update deploy-prod.yml
p-shubh Jun 26, 2024
ef73f15
Update deploy-prod.yml
p-shubh Jun 26, 2024
4bf1088
Update deploy-prod.yml
p-shubh Jun 26, 2024
e59708c
Update deploy-prod.yml
ansm Jun 26, 2024
686b32b
Update deploy-prod.yml
ansm Jun 26, 2024
754b0b5
Update deploy-prod.yml
ansm Jun 26, 2024
e4c495a
Update deploy-prod.yml
ansm Jun 26, 2024
bab9e73
Update deploy-prod.yml
p-shubh Jun 26, 2024
d929859
Update deploy-prod.yml
p-shubh Jun 26, 2024
fef66ff
Update deploy-prod.yml
p-shubh Jun 26, 2024
5f06c6d
Update deploy-prod.yml
p-shubh Jun 26, 2024
191ddc4
Update deploy-prod.yml
p-shubh Jun 26, 2024
7fc8c68
Update deploy-prod.yml
p-shubh Jun 26, 2024
1c40cc2
Update deploy-prod.yml
p-shubh Jun 26, 2024
9f9ccdd
Update deploy-prod.yml
p-shubh Jun 26, 2024
0376d51
Update deploy-prod.yml
p-shubh Jun 26, 2024
23e3d1b
Update deploy-prod.yml
p-shubh Jun 26, 2024
68aa00c
Update deploy-prod.yml
ansm Jul 2, 2024
f786067
Update deploy-prod.yml
ansm Jul 3, 2024
52c8cb3
Merge pull request #70 from NetSepio/main
devsisingh Jul 23, 2024
2740539
plans page
devsisingh Jul 24, 2024
9841a11
changes
devsisingh Jul 24, 2024
feaf0bf
Merge pull request #72 from NetSepio/main
devsisingh Jul 27, 2024
88c3f92
Update deploy-prod.yml
ansm Jul 27, 2024
66b28f4
Merge pull request #75 from NetSepio/main
devsisingh Jul 31, 2024
7dcc422
Merge pull request #76 from NetSepio/main
devsisingh Aug 1, 2024
d9fccd6
Merge pull request #79 from NetSepio/main
devsisingh Aug 7, 2024
204dce6
Merge pull request #81 from NetSepio/main
Rushikeshnimkar Aug 7, 2024
160d47f
Merge pull request #82 from NetSepio/main
Rushikeshnimkar Aug 7, 2024
2df9fab
Merge pull request #83 from NetSepio/main
Rushikeshnimkar Aug 7, 2024
2cecbb3
Merge pull request #88 from NetSepio/main
devsisingh Aug 9, 2024
cd7d670
Merge pull request #100 from NetSepio/main
Rushikeshnimkar Aug 22, 2024
f1b268e
Merge pull request #103 from NetSepio/main
Rushikeshnimkar Aug 22, 2024
a1268bf
Merge pull request #105 from NetSepio/main
Rushikeshnimkar Aug 22, 2024
f2c2fd4
Merge pull request #120 from NetSepio/main
Rushikeshnimkar Aug 29, 2024
b6f68dc
Merge pull request #133 from NetSepio/main
vaibhavvvvv Sep 13, 2024
52ec394
Merge pull request #136 from NetSepio/main
Rushikeshnimkar Sep 14, 2024
486d4fd
Merge pull request #138 from NetSepio/main
Rushikeshnimkar Sep 14, 2024
2b94ede
Merge pull request #140 from NetSepio/main
Rushikeshnimkar Sep 15, 2024
6518df1
Merge pull request #143 from NetSepio/main
Rushikeshnimkar Sep 28, 2024
bb13bf1
Merge pull request #145 from NetSepio/main
Rushikeshnimkar Sep 29, 2024
e4a4ff8
Merge pull request #147 from NetSepio/main
Rushikeshnimkar Oct 1, 2024
7b979b6
Merge pull request #149 from NetSepio/main
Rushikeshnimkar Oct 6, 2024
64af85e
Merge pull request #153 from NetSepio/main
Rushikeshnimkar Oct 14, 2024
03ae067
Merge pull request #156 from NetSepio/main
Rushikeshnimkar Oct 14, 2024
8125dbd
Merge pull request #159 from NetSepio/main
Rushikeshnimkar Oct 15, 2024
4fcb5a2
Merge pull request #162 from NetSepio/main
Rushikeshnimkar Oct 15, 2024
3b2cc46
Merge pull request #165 from NetSepio/main
Rushikeshnimkar Oct 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 12 additions & 16 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,17 @@ jobs:
docker push $GITHUB_BRANCH_IMAGE
rm -rf .env

deploy_dev:
deploy_prod:
needs: build_push
runs-on: ubuntu-latest
runs-on: self-hosted

steps:
- name: Deploy on PROD server
if: github.ref == 'refs/heads/prod'
uses: appleboy/[email protected]
with:
host: ${{ secrets.PROD_REMOTE_SERVER_ADDRESS }}
username: ${{ secrets.PROD_SERVER_USERNAME }}
key: ${{ secrets.PROD_REMOTE_SERVER_KEY }}
port: ${{ secrets.PROD_SSH_PORT }}
script: |
pwd
docker stop erebrus-frontend || true && docker image rm ghcr.io/netsepio/erebrus-frontend:prod
echo ${{ secrets.GHCR_TOKEN }} | docker login ghcr.io -u ${{ secrets.GHCR_USERNAME }} --password-stdin
docker pull ghcr.io/netsepio/erebrus-frontend:prod
docker run --name="erebrus-frontend" --rm -p 4040:8080 --net=bridge -d ghcr.io/netsepio/erebrus-frontend:prod
- name: Update image in cloun run
run: |
docker pull ghcr.io/netsepio/erebrus-frontend:prod
docker tag ghcr.io/netsepio/erebrus-frontend:prod us-west4-docker.pkg.dev/erebrus-prod/erebrus/erebrus-frontend:prod
gcloud auth activate-service-account --key-file=${{ secrets.SERVICE_ACCOUNT_KEY_FILE_PATH }} --project=${{ secrets.PROJECT }}
gcloud config set account ${{ secrets.SERVICE_ACCOUNT }}
gcloud auth print-access-token | docker login -u oauth2accesstoken --password-stdin https://us-west4-docker.pkg.dev
docker push us-west4-docker.pkg.dev/erebrus-prod/erebrus/erebrus-frontend:prod
gcloud run deploy erebrus-frontend --image us-west4-docker.pkg.dev/erebrus-prod/erebrus/erebrus-frontend:prod --region us-west4
Loading