Skip to content

Commit

Permalink
init project
Browse files Browse the repository at this point in the history
  • Loading branch information
mfdeveloper508 committed Feb 17, 2020
0 parents commit 5b12155
Show file tree
Hide file tree
Showing 11,181 changed files with 1,683,316 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# ide
.idea

# tmp
tmp

# os
.DS_Store
42 changes: 42 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
stages:
- build
- test
- deploy

services:
- docker:dind

variables:
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG

build:
stage: build
script:
- export DOCKER_HOST="tcp://localhost:2375"
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker build -t $IMAGE_TAG .
- docker push $IMAGE_TAG

test:
stage: test
script:
- export DOCKER_HOST="tcp://localhost:2375"
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker run --entrypoint "run-tests.sh" $IMAGE_TAG

deploy:
stage: deploy
image: python
environment:
name: fupp-api-dev
url: http://fupp-api-dev.devserver.london
only:
- david
variables:
EB_ENV: "fupp-api-dev"
script:
- pip install awscli
- apt-get update
- apt-get install -y zip
- chmod +x ./bin/deploy.sh
- ./bin/deploy.sh
Loading

0 comments on commit 5b12155

Please sign in to comment.