Compare commits

..

10 Commits

Author SHA1 Message Date
8821942672 Move to original base
All checks were successful
Remote Deployment Pipeline / Prepare deployment vars (push) Successful in 2s
Remote Deployment Pipeline / Create remote directory (push) Successful in 7s
Remote Deployment Pipeline / Cleanup MR environment (push) Has been skipped
Remote Deployment Pipeline / Sync repository files (push) Successful in 39s
Remote Deployment Pipeline / Run docker-compose remotely (push) Successful in 9s
2025-10-21 22:01:15 +02:00
691f04e90f Fix name 2025-10-21 21:59:10 +02:00
f2e7a510c7 test 2025-10-21 21:57:46 +02:00
3eedb52efd Fix hardcoding 2025-10-21 21:53:07 +02:00
86e14ed18b fix 2025-10-21 21:47:48 +02:00
69635e8fe6 test 2025-10-21 21:45:50 +02:00
3373d37efb test 2025-10-21 21:43:14 +02:00
5fad26cb5b debugging 2025-10-21 21:40:30 +02:00
09d89a651e test 2025-10-21 21:37:06 +02:00
41e74b931a debugging 2025-10-21 21:35:48 +02:00
4 changed files with 33 additions and 7 deletions

View File

@@ -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)

1
asd.txt Normal file
View File

@@ -0,0 +1 @@
Random file, ami remélhetőleg megjelenik

8
docker-compose.yaml Normal file
View 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
View 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>