Skip to content

Instantly share code, notes, and snippets.

View antoninbouchal's full-sized avatar

Antonín Bouchal antoninbouchal

View GitHub Profile
@antoninbouchal
antoninbouchal / .gitlab-ci.yml
Created December 22, 2020 06:51
Gitlab CI for uploading to FTP
stages:
- deploy
deploy:
image: ubuntu:18.04
when: manual
stage: deploy
before_script:
- apt-get update -qy
- apt-get install -y lftp
@antoninbouchal
antoninbouchal / .gitlab-ci.yml
Last active April 16, 2024 09:33
Deploy APP through SSH to VPS with Gitlab CI
stages:
- build
- deploy
before_script:
- |
# docker variables for name and tag of new image
export DOCKER_TAG="${CI_COMMIT_SHA:0:8}"
export DOCKER_REPO="$CI_REGISTRY_IMAGE"
export DOCKER_IMAGE="${DOCKER_REPO}:${DOCKER_TAG}"