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.
@10go
10go / pcp.log
Last active October 18, 2017 19:23
pcp logs for CT-17749
worker-4-useful.log:2017-10-18 03:31:09 PM: INFO - RECEIVING XML uuid: 75c64504-95af-47ee-9135-954e90ff19b4.
worker-4-useful.log-2017-10-18 03:31:09 PM: INFO - .... Cdr_source is CE.
worker-4-useful.log-2017-10-18 03:31:09 PM: INFO - .... DNIS number: 2102552893.
worker-4-useful.log-2017-10-18 03:31:09 PM: INFO - .... DNIS number after stripping: 2102552893.
worker-4-useful.log-2017-10-18 03:31:09 PM: INFO - .... Number found in number pool.
worker-4-useful.log-2017-10-18 03:31:09 PM: INFO - .... Provisioned Route id: 25408
worker-4-useful.log-2017-10-18 03:31:09 PM: INFO - ++++ NEED TO CODE IN FOR GEO ROUTES
worker-4-useful.log:2017-10-18 03:31:09 PM: INFO - .... Retrieving 75c64504-95af-47ee-9135-954e90ff19b4.wav, storing as /var/spool/logmycalls/temp/_tmp_75c64504-95af-47ee-9135-954e90ff19b4.wav locally
worker-4-useful.log:2017-10-18 03:31:09 PM: INFO - .... Downloading ftp://pcp@ce3-01.la.l3.logmycalls.com/75c64504-95af-47ee-9135-954e90ff19b4.wav to local file /var/spool/logmycalls/temp/_tmp_75c64504-95af