This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: node:6.11.3 | |
cache: | |
key: cache_yarn | |
paths: | |
- .cache_yarn | |
stages: | |
- install | |
- build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |