Compare commits
10 Commits
78567e117a
...
8821942672
| Author | SHA1 | Date | |
|---|---|---|---|
| 8821942672 | |||
| 691f04e90f | |||
| f2e7a510c7 | |||
| 3eedb52efd | |||
| 86e14ed18b | |||
| 69635e8fe6 | |||
| 3373d37efb | |||
| 5fad26cb5b | |||
| 09d89a651e | |||
| 41e74b931a |
@@ -63,13 +63,17 @@ jobs:
|
||||
sync_repo_files:
|
||||
name: Sync repository files
|
||||
runs-on: ubuntu-latest
|
||||
needs: create_remote_directory
|
||||
needs: [create_remote_directory, prepare_deployment_vars]
|
||||
if: |
|
||||
(github.event_name == 'pull_request' && github.event.action != 'closed' && github.event.pull_request.merged == false)
|
||||
|| github.ref == 'refs/heads/main'
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: asd
|
||||
run:
|
||||
ls -alh
|
||||
|
||||
- name: Sync files via scp
|
||||
uses: appleboy/scp-action@master
|
||||
with:
|
||||
@@ -79,16 +83,18 @@ jobs:
|
||||
port: ${{ env.SSH_PORT }}
|
||||
source: "./"
|
||||
target: "${{ needs.prepare_deployment_vars.outputs.deploy_path }}"
|
||||
#target: "/tmp/app/main"
|
||||
debug: true
|
||||
# The 'exclude' parameter is supported and should be kept
|
||||
exclude: |
|
||||
.git/
|
||||
.github/
|
||||
node_modules/
|
||||
# exclude: |
|
||||
# .git/
|
||||
# .github/
|
||||
# node_modules/
|
||||
|
||||
run_docker_compose:
|
||||
name: Run docker-compose remotely
|
||||
runs-on: ubuntu-latest
|
||||
needs: sync_repo_files
|
||||
needs: [sync_repo_files, prepare_deployment_vars]
|
||||
if: |
|
||||
(github.event_name == 'pull_request' && github.event.action != 'closed' && github.event.pull_request.merged == false)
|
||||
|| github.ref == 'refs/heads/main'
|
||||
@@ -115,7 +121,7 @@ jobs:
|
||||
cleanup_mr_environment:
|
||||
name: Cleanup MR environment
|
||||
runs-on: ubuntu-latest
|
||||
needs: prepare_deployment_vars
|
||||
needs: [prepare_deployment_vars, prepare_deployment_vars]
|
||||
if: |
|
||||
github.event_name == 'pull_request' &&
|
||||
(github.event.action == 'closed' || github.event.pull_request.merged == true)
|
||||
|
||||
8
docker-compose.yaml
Normal file
8
docker-compose.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
version: "3.9"
|
||||
services:
|
||||
web:
|
||||
image: nginx:latest
|
||||
ports:
|
||||
- "80"
|
||||
volumes:
|
||||
- ./html:/usr/share/nginx/html:ro
|
||||
11
html/index.html
Normal file
11
html/index.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Helló világ!</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Hello, World! 👋</h1>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user