CI/CD gitlab ha GCP code example
Example: setup ci cd gitlab
Step 1:
Create .gitlab-ci.yml file (root folder)
Step 2:
Open .gitlab-ci.yml file: fill something below
--------------------
image: ubuntu:18.04
before_script:
- apt-get update -qy
- apt-get install -y lftp
build:
script:
- lftp -e "set ftp:ssl-allow no; open xxx.yyy.zzz.uuu; user ftp_account ftp_password; mirror -X .* -X .*/ --reverse --verbose ./ ./; bye"
--------------------
NOTE:
ftp_account: MUST set here
ftp_password: MUST set here
link ref
https://savjee.be/2019/04/gitlab-ci-deploy-to-ftp-with-lftp/