| 1 | # .gitlab-ci.yml |
| 2 | |
| 3 | # Define stages for the pipeline |
| 4 | stages: |
| 5 | - deploy |
| 6 | |
| 7 | # Define a job that runs when something is pushed to the master branch |
| 8 | deploy_job: |
| 9 | stage: deploy |
| 10 | script: |
| 11 | - apt-get update -qy |
| 12 | # - apt-get install -y lftp |
| 13 | - chmod +x ./glbuild.sh # Ensure the script is executable |
| 14 | - ./glbuild.sh # Execute the script |
| 15 | #werkt nog niet# - lftp -c "open -u 300889,25Up3uwb! sftp://sftp.timfalken.com; mirror -R js /public/sites/projects.timfalken.com/frameworkv3" |
| 16 | artifacts: |
| 17 | paths: |
| 18 | - js/framework.js |
| 19 | only: |
| 20 | - master # Run this job only when changes are pushed to the master branch |