diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..5b6f2ad --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,66 @@ +stages: + - deploy + +variables: + DEPLOY_PATH: "/var/www/web2print" + +# ===== DEPLOY ===== +deploy_prod: + stage: deploy + image: alpine:latest + only: + - main + before_script: + - apk add --no-cache rsync openssh + - mkdir -p ~/.ssh + - echo -e "$SSH_PRIVATE_KEY" > ~/.ssh/id_ed25519 + - chmod 600 ~/.ssh/id_ed25519 + - | + cat > ~/.ssh/config <