Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://gitlab.com/jeantil/now-gitlab-ci-sample
A sample project which demonstrates custom gitlab-ci integration while retaining the benefits of linking the gitlab project. This kind of integration can be useful if you want to use different now.json to have different set of environment variables.
https://gitlab.com/jeantil/now-gitlab-ci-sample
gitlab-ci now zeit
Last synced: 3 months ago
JSON representation
A sample project which demonstrates custom gitlab-ci integration while retaining the benefits of linking the gitlab project. This kind of integration can be useful if you want to use different now.json to have different set of environment variables.
- Host: gitlab.com
- URL: https://gitlab.com/jeantil/now-gitlab-ci-sample
- Owner: jeantil
- Created: 2019-08-29T19:58:08.676Z (over 5 years ago)
- Default Branch: master
- Last Synced: 2024-07-30T21:07:50.757Z (6 months ago)
- Topics: gitlab-ci, now, zeit
- Stars: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Aim
This repository demonstrates how to replicate the now for gitlab integration features using gitlab ci
## Why bother
This is useful if you want to have different set of environment variables which means you can't use the default now for gitlab integration because you need to customize the now command to use a custom now.json file.
However a naive approach to this problem leads to a project where all the deployments are made by the same person and where you loose the deployment metadata (such as the associated commit hash and links to navigate there).
## Current advancement
The sample project mostly solves this issue- build metadata is properly set including avatar icon
- build-env variables are set as documented at https://zeit.co/docs/v2/advanced/now-for-gitlab/#
- for merge requests, once the deployment is over, a comment is added to the MR with the deployment url## Requirements
For this pipeline to work, you will have to set the following environment variables:
- NOW_TOKEN
- NOW_API_URL (should be https://api.zeit.co/)