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:
|
sync_repo_files:
|
||||||
name: Sync repository files
|
name: Sync repository files
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: create_remote_directory
|
needs: [create_remote_directory, prepare_deployment_vars]
|
||||||
if: |
|
if: |
|
||||||
(github.event_name == 'pull_request' && github.event.action != 'closed' && github.event.pull_request.merged == false)
|
(github.event_name == 'pull_request' && github.event.action != 'closed' && github.event.pull_request.merged == false)
|
||||||
|| github.ref == 'refs/heads/main'
|
|| github.ref == 'refs/heads/main'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: asd
|
||||||
|
run:
|
||||||
|
ls -alh
|
||||||
|
|
||||||
- name: Sync files via scp
|
- name: Sync files via scp
|
||||||
uses: appleboy/scp-action@master
|
uses: appleboy/scp-action@master
|
||||||
with:
|
with:
|
||||||
@@ -79,16 +83,18 @@ jobs:
|
|||||||
port: ${{ env.SSH_PORT }}
|
port: ${{ env.SSH_PORT }}
|
||||||
source: "./"
|
source: "./"
|
||||||
target: "${{ needs.prepare_deployment_vars.outputs.deploy_path }}"
|
target: "${{ needs.prepare_deployment_vars.outputs.deploy_path }}"
|
||||||
|
#target: "/tmp/app/main"
|
||||||
|
debug: true
|
||||||
# The 'exclude' parameter is supported and should be kept
|
# The 'exclude' parameter is supported and should be kept
|
||||||
exclude: |
|
# exclude: |
|
||||||
.git/
|
# .git/
|
||||||
.github/
|
# .github/
|
||||||
node_modules/
|
# node_modules/
|
||||||
|
|
||||||
run_docker_compose:
|
run_docker_compose:
|
||||||
name: Run docker-compose remotely
|
name: Run docker-compose remotely
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: sync_repo_files
|
needs: [sync_repo_files, prepare_deployment_vars]
|
||||||
if: |
|
if: |
|
||||||
(github.event_name == 'pull_request' && github.event.action != 'closed' && github.event.pull_request.merged == false)
|
(github.event_name == 'pull_request' && github.event.action != 'closed' && github.event.pull_request.merged == false)
|
||||||
|| github.ref == 'refs/heads/main'
|
|| github.ref == 'refs/heads/main'
|
||||||
@@ -115,7 +121,7 @@ jobs:
|
|||||||
cleanup_mr_environment:
|
cleanup_mr_environment:
|
||||||
name: Cleanup MR environment
|
name: Cleanup MR environment
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: prepare_deployment_vars
|
needs: [prepare_deployment_vars, prepare_deployment_vars]
|
||||||
if: |
|
if: |
|
||||||
github.event_name == 'pull_request' &&
|
github.event_name == 'pull_request' &&
|
||||||
(github.event.action == 'closed' || github.event.pull_request.merged == true)
|
(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