8000 Moved all CI/CD to Travis by rporres · Pull Request #255 · src-d/code-annotation · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 0 additions & 104 deletions .drone.yml

This file was deleted.

39 changes: 37 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,49 @@ before_install:
- nvm use 8
- npm install -g yarn

stages:
- name: test-linters-build
- name: staging
if: branch = staging AND type = push
- name: release
if: tag IS present
- name: release-helm
if: tag IS present

jobs:
include:
- stage: Tests, linters and build
- name: 'Tests and linters'
stage: test-linters-build
script:
- make lint-frontend
- make test-frontend
- make lint-backend
- make test
- make validate-commit
- script:
- name: 'Build'
stage: test-linters-build
script:
- make build-app
- name: 'Deploy to staging'
stage: staging
script:
# Do not allow for subsequents script steps to run in case previous one fails
- make build-app && VERSION=commit-${TRAVIS_COMMIT:0:7} make docker-push && HELM_RELEASE=code-annotation HELM_CHART=code-annotation K8S_NAMESPACE=default HELM_ARGS="--repo https://src-d.github.io/charts/infra/ --version 0.1.0 --set image.tag=commit-${TRAVIS_COMMIT:0:7} -f .helm-staging.yml" make deploy
- name: 'Release'
stage: release
script:
- make build-app
- DOCKER_PUSH_LATEST=true make docker-push
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file: build/*.tar.gz
skip_cleanup: true
on:
tags: true
go: 1.9.x
- name: 'Deploy to production'
stage: release-helm
script:
- B64_CA_CRT=$PRODUCTION_B64_CA_CRT SERVICE_ACCOUNT_TOKEN=$PRODUCTION_SERVICE_ACCOUNT_TOKEN CLUSTER_ENDPOINT=$PRODUCTION_CLUSTER_ENDPOINT HELM_RELEASE=code-annotation HELM_CHART=code-annotation K8S_NAMESPACE=default HELM_ARGS="--repo https://src-d.github.io/charts/infra/ --version 0.1.0 --set image.tag=$TRAVIS_TAG -f .helm-production.yml" make deploy
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
FROM alpine:3.7
FROM debian:buster-slim
ADD ./build/bin /bin

RUN apk --update upgrade && \
apk add --no-cache ca-certificates
RUN apt-get update && \
apt-get install -y --no-install-recommends --no-install-suggests \
ca-certificates \
&& apt-get clean
RUN mkdir /var/code-annotation

ENTRYPOINT ["/bin/server"]
21 changes: 0 additions & 21 deletions helm-charts/code-annotation/.helmignore

This file was deleted.

4 changes: 0 additions & 4 deletions helm-charts/code-annotation/Chart.yaml

This file was deleted.

53 changes: 0 additions & 53 deletions helm-charts/code-annotation/README.md

This file was deleted.

16 changes: 0 additions & 16 deletions helm-charts/code-annotation/templates/_helpers.tpl

This file was deleted.

72 changes: 0 additions & 72 deletions helm-charts/code-annotation/templates/deployment.yaml

This file was deleted.

32 changes: 0 additions & 32 deletions helm-charts/code-annotation/templates/ingress.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions helm-charts/code-annotation/templates/persistent-volume-claim.yaml

This file was deleted.

Loading
0