Skip to content

Instantly share code, notes, and snippets.

@10go
10go / gitlab-ci.yml
Created December 12, 2018 12:47
Publish your create-react-app website via Gitlab CI. tags: #gitlab #git #deploy #ci
image: node:6.5.0 # can be upgraded, depending on your node version used
pages:
stage: deploy
script:
- npm install
- npm run build
- rm -rf public
- mv build public
artifacts:
@10go
10go / .gitlab-ci.yml
Created December 12, 2018 11:46 — forked from superjose/.gitlab-ci.yml
This is an example of a .gitlab-ci.yml that is required for Continuous Integration on GitLab projects.
# Reference: https://www.exclamationlabs.com/blog/continuous-deployment-to-npm-using-gitlab-ci/
# GitLab uses docker in the background, so we need to specify the
# image versions. This is useful because we're freely to use
# multiple node versions to work with it. They come from the docker
# repo.
# Uses NodeJS V 9.4.0
image: node:9.4.0
# And to cache them as well.
@10go
10go / .gitlab-ci.yml
Created December 12, 2018 11:42 — forked from m8r1x/.gitlab-ci.yml
Sample gitlab CI file for deploying a `create-react-app` application to firebase.
image: node:6.11.3
cache:
key: cache_yarn
paths:
- .cache_yarn
stages:
- install
- build
@10go
10go / .gitlab-ci.yml
Created December 12, 2018 11:37 — forked from m8r1x/.gitlab-ci.yml
Basic skeleton of Gitlab CI integration with AWS Lambda for auto deployments.
image: docker:latest
before_script:
- apt-get update -y # Updating the Ubuntu Docker instance.
- python -V # Print out python version for debugging.
- apt install -y zip jq
- pip install awscli --upgrade --user
- export PATH=~/.local/bin:$PATH # Required for awscli.
- aws --version # Print out aws cli version for debugging.