Alpine3.8 / dotnet core 2.1 / php7 / node12 for Gitlab CI/CD (+yaml templates in github repo)
1.5K
Alpine 3.8 image with :
phpdotnetAvailable development tools:
composer (v2.0)dotnet-gitversion (latest)phpcsnpmCorresponding config files are provided in folders
Deployment is handled with lorisleiva/laravel-deployer package.
Some variables to set in Gitlab CI variable folder:
SSH_PRIVATE_KEY to access target servers. You need to set corresponding public key on all your servers.DEPLOY_BETA to deploy develop and feature branches automaticaly to DEPLOY_BETA urlDEPLOY_STAGING to deploy master and release branches automaticaly to DEPLOY_STAGING urlDEPLOY_PRODUCTION to deploy master branch on demand to DEPLOY_PRODUCTION urlNota: the VERSION file at repository root will automaticaly be updated with gitversion's fullsemver value on pipeline start
Publishing is handled with release-it package File can be referenced within every gitlab project:
include:
- project: 'tomgrv/ci-builder'
ref: master
file: '/templates/node/.gitlab-ci.yml'
Package.json is parsed for GitVersion_* variable replacement before each job:
{
"name": "package-name",
"version": "${GitVersion_SemVer}",
"description": "This is package Description for version ${GitVersion_InformationalVersion}",
"main": "src/index.js",
...
}
Some variables to set in Gitlab CI variable folder:
NPM_TOKEN to package & publish master branch on https://npmjs.comGITHUB_TOKEN to package & publish master branch on https://github.com automaticalyGITLAB_TOKEN to package & publish master branch on https://gitlab.com automaticalyContent type
Image
Digest
Size
584.2 MB
Last updated
almost 6 years ago
docker pull tomgrv/ci-builder:4.0.0