Ver código fonte

tech(build): adds s3 bucket for nightly

bergquist 9 anos atrás
pai
commit
3d6698389b
2 arquivos alterados com 2 adições e 6 exclusões
  1. 2 2
      circle.yml
  2. 0 4
      scripts/circle-test.sh

+ 2 - 2
circle.yml

@@ -31,14 +31,14 @@ test:
 
 
 deployment:
 deployment:
   gh_branch:
   gh_branch:
-    branch: new_deploy
+    branch: master
     owner: grafana
     owner: grafana
     commands:
     commands:
       - pip install awscli
       - pip install awscli
       - ./scripts/build/build_container.sh
       - ./scripts/build/build_container.sh
       - ./scripts/build/deploy.sh
       - ./scripts/build/deploy.sh
       #- ./scripts/build/sign_packages.sh
       #- ./scripts/build/sign_packages.sh
-      #- aws s3 sync ./dist s3://$BUCKET_NAME
+        - aws s3 sync ./dist s3://$NIGHTLY_BUCKET_NAME
       #- ./scripts/trigger_grafana_docker_build.sh ${TRIGGER_GRAFANA_DOCKER_CIRCLECI_TOKEN}
       #- ./scripts/trigger_grafana_docker_build.sh ${TRIGGER_GRAFANA_DOCKER_CIRCLECI_TOKEN}
   gh_tag:
   gh_tag:
     tag: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
     tag: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/

+ 0 - 4
scripts/circle-test.sh

@@ -18,12 +18,8 @@ yarn install --pure-lockfile
 
 
 exit_if_fail npm test
 exit_if_fail npm test
 
 
-#test -z "$(gofmt -s -l ./pkg/... | tee /dev/stderr)"
 exit_if_fail test -z "$(gofmt -s -l ./pkg/... | tee /dev/stderr)"
 exit_if_fail test -z "$(gofmt -s -l ./pkg/... | tee /dev/stderr)"
-
-#exit_if_fail go run build.go setup
 exit_if_fail go run build.go build
 exit_if_fail go run build.go build
-
 exit_if_fail go vet ./pkg/...
 exit_if_fail go vet ./pkg/...
 exit_if_fail go test -v ./pkg/...
 exit_if_fail go test -v ./pkg/...