Available at Docker Hub: https://hub.docker.com/r/jimmyadaro/gitlab-ci-cd
It uses bash
, SSH
and LFTP
to connect a remote server and mirror (upload) the Git repository using the Git CI/CD repo vendor.
The tzdata
package is to set the TimeZone when using date
like so: CURRENT_DATE=$(TZ="America/Argentina/Buenos_Aires" date +%F_%H-%M-%S);
"Alpine Linux is a security-oriented, lightweight Linux distribution based on musl libc and busybox."
"The GNU Bourne-Again Shell"
"OpenSSH is the premier connectivity tool for remote login with the SSH protocol."
"LFTP is a sophisticated file transfer program supporting a number of network protocols (ftp, http, sftp, fish, torrent)."
"The Time Zone Database (often called tz or zoneinfo) contains code and data that represent the history of local time for many representative locations around the globe"
- It'll automatically update Linux and install the non-cached packages.
- Packages installation will run quietly (
apk add --no-cache <package> -q
). - It'll automatically use
bash
instead of Alpine's default shell (sh
).
* Pipeline configuration not included. "Use at your own risk." Tutorial for GitLab CI/CD here. Tutorial for Bitbucket coming soon.