Skip to content

Commit

Permalink
Merge branch 'testingWebpack' of https://github.com/frontend-park-mai…
Browse files Browse the repository at this point in the history
…l-ru/2024_2_Komanda7 into testingWebpack
  • Loading branch information
Ko71k committed Dec 16, 2024
2 parents 7e30ba2 + f40599e commit 46b59b0
Showing 1 changed file with 24 additions and 22 deletions.
46 changes: 24 additions & 22 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
# name: Deploy Frontend
name: Deploy Frontend
on:
push:
branches:
- testingWebpack

# on:
# push:
# branches:
# - testingWebpack
jobs:
deploy:
runs-on: ubuntu-latest

# jobs:
# deploy:
# runs-on: ubuntu-latest

# steps:
# - name: Set up SSH
# run: |
# mkdir -p ~/.ssh
# echo "${{ secrets.VM_SSH_KEY }}" > ~/.ssh/id_ed25519
# chmod 600 ~/.ssh/id_ed25519
# echo "Host 37.139.40.252
# StrictHostKeyChecking no" > ~/.ssh/config
# - name: Execute script on VM
# run: |
# ssh [email protected] 'bash -s' <<EOF
# ./update_front.sh || exit 2
# EOF
steps:
- name: Set up SSH
run: |
mkdir -p ~/.ssh
echo "${{ secrets.VM_SSH_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
echo "Host 37.139.40.252
StrictHostKeyChecking no" > ~/.ssh/config
- name: Execute script on VM
run: |
ssh [email protected] 'bash -s' <<EOF
cd front
sudo git pull origin testingWebpack
docker compose build
docker compose up -d
EOF

0 comments on commit 46b59b0

Please sign in to comment.