Skip to content

Commit

Permalink
Create backend-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Alputer authored Nov 7, 2023
1 parent 7958132 commit 9bdbd59
Showing 1 changed file with 75 additions and 0 deletions.
75 changes: 75 additions & 0 deletions .github/workflows/backend-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: Deploy-Backend-to-Compute-Engine

on:
push:
branches:
- main
paths:
- 'app/backend/**'
- '.github/workflows/backend-deploy.yml'


jobs:
deploy:
name: Deploy to Compute Engine
runs-on: ubuntu-latest

steps:
- name: Checkout the files
uses: actions/checkout@v2

- name: Deploy to server
uses: easingthemes/ssh-deploy@main
env:
SSH_PRIVATE_KEY: |
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABlwAAAAdzc2gtcn
NhAAAAAwEAAQAAAYEAy+OYEEdRWSzN6vrjrUYl5t6Ut2zJFM6Xj5umjJvvVF6k+doKf7+D
xZhuXx2Zz0KQCyBplOtm3xd09zHUFxIw7U+ndcZlTZrhfMgx4+SlhT6Yi1Ylyzag0ZSG3L
bzcH58beXzyOQArVI9Po92mA2te9K2qillCO17rufioXB1U4yMtz1Euzna/2OwJIXEiG1h
uppQnYRkzrwcLozz3z8lQ8nk6WOTzPd+0+qH46Z9xG5/5ScObkddCJxC+DPHqnMT4G3ld1
dk/1qeelf//K5Ar4p7m92mUaLLcBOG1Y7Sb4xW7Xxp512+9G6abBTfUOJhOz0C3Rs6rDCz
yaHd9VbEaHAFbpH/FY9c4rireCjHJAqMcg23rHAeHau8u1KBYorhfAA92PlEZlduN8rl1e
2Wm7VkepE2s2MrNwiAvyX5tIpvoJPIpk2MBRkt5685SMdl23NZ1Cdrf3SKXp7wjomzZfKc
kpy+2nA3+8JiMf32fF1dHhwIsoIoGNMyMidrASg/AAAFkD7IJUQ+yCVEAAAAB3NzaC1yc2
EAAAGBAMvjmBBHUVkszer6461GJebelLds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NCZ1kPh
GdIOc1V1AI3s2VNM1nmqCVjUf+t0BYEz1IhFVLZONkW4Xdy1OSwXR1ET+NwHl0Cn77GBah
QG5et85FOOVxiIxSXc21sspVzgwMSsXoQ6VtuHLUqtyG2lgESUAf1OcUSRZ6JtCcg5fLiQ
A9dz3L5OUk7LANbpSQ6aNvLP5RLuKkjMFijXQ6nFiVi/eAbxIAAADBAO4CTeAEgMHeO4L5
M058z6+GyepGubDecHIozvRTvbz57FoJpAEqnvsztUMrL1JEGuLAQ3Q7fXggDQa5S/R/U8
HVMELwhjP5gQcDQiUkfZh955UNnuAYnGdpw0kYPJIZGiGxQBPsriN2bX9Zk4vUwIUR+xr9
mf/apbcmCaOjs9QTNMpvt42m0xrSL6VaGipt5W5GqxmbdtWocxytnFUVH/C4Yv7jBk+SCu
N4bbuf9Cv+1YMbpOuVjvgA4tmhZPT35QAAAMEA200JaY1VyhrU9gCR5WxMLawNIwoBG80f
8bDdpk0xvfBFIFs1FqqThgOZpMFJhXdh7Ounk1tD6CN3vnEKj77vA6XbGYYXs7LZ1cPW3y
l4R6ssvlpelUXTqiO9WASobbiJ0Kj/6PqjIPyurHDXdqhgSjY8UUzKw57lvhBl5uAlPsN8
L8GGP/tnwGeg1DxmekAgiIMPsr4Cg1DTdTxCL97JoZ9D2/YJuUJ7Dmp5/pqYwQV6lU+a2W
0h99S7Ob7YUxVTAAAAFmFscC50dW5hLjQ1M0BnbWFpbC5jb20BAgME
-----END OPENSSH PRIVATE KEY-----
'
REMOTE_HOST: 34.105.66.254
REMOTE_USER: alp.tuna.453
SOURCE: app/backend/
TARGET: ~/backend
ARGS: --delete
EXCLUDE: .env
SCRIPT_AFTER: |
cd ~/backend
docker build -t pollup:backend .
docker stop app
docker rm app
docker run --name app -p 1923:3000 -d pollup:backend

0 comments on commit 9bdbd59

Please sign in to comment.