diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index f51067f..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,41 +0,0 @@ -# -*- mode: yaml -*- - -version: 2 -jobs: - test-1.11: - working_directory: /go/src/go.universe.tf/netboot - docker: - - image: circleci/golang:1.11 - steps: - - checkout - - run: make ci-prepare - - run: make build - - run: make test - - run: make lint - deploy: - working_directory: /go/src/go.universe.tf/netboot - docker: - - image: circleci/golang:1.11 - steps: - - checkout - - setup_remote_docker - - run: echo $CIRCLE_BRANCH - - run: docker login -u $DOCKER_USER -p $DOCKER_PASSWORD - - run: make ci-prepare - - run: make ci-push-images TAG=${CIRCLE_BRANCH:-${CIRCLE_TAG}} -workflows: - version: 2 - test-and-deploy: - jobs: - - test-1.11: - filters: - tags: - only: /.*/ - - deploy: - filters: - branches: - ignore: /pull\/.*/ - tags: - only: /.*/ - requires: - - test-1.11 diff --git a/.circleci/config.yml.tmpl b/.circleci/config.yml.tmpl deleted file mode 100644 index fa9b1c4..0000000 --- a/.circleci/config.yml.tmpl +++ /dev/null @@ -1,45 +0,0 @@ -# -*- mode: yaml -*- - -version: 2 -jobs: -{{- range .GoVersions }} - test-{{.}}: - working_directory: /go/src/go.universe.tf/netboot - docker: - - image: circleci/golang:{{.}} - steps: - - checkout - - run: make ci-prepare - - run: make build - - run: make test - - run: make lint -{{- end }} - deploy: - working_directory: /go/src/go.universe.tf/netboot - docker: - - image: circleci/golang:1.11 - steps: - - checkout - - setup_remote_docker - - run: echo $CIRCLE_BRANCH - - run: docker login -u $DOCKER_USER -p $DOCKER_PASSWORD - - run: make ci-prepare - - run: make ci-push-images TAG=${CIRCLE_BRANCH:-${CIRCLE_TAG}} -workflows: - version: 2 - test-and-deploy: - jobs: -{{- range .GoVersions }} - - test-{{.}}: - filters: - tags: - only: /.*/ -{{- end }} - - deploy: - filters: - branches: - ignore: /pull\/.*/ - tags: - only: /.*/ - requires: - - test-1.11 diff --git a/.circleci/gen-config.go b/.circleci/gen-config.go deleted file mode 100644 index 3df82d5..0000000 --- a/.circleci/gen-config.go +++ /dev/null @@ -1,19 +0,0 @@ -package main - -import ( - "html/template" - "os" - - "github.com/golang/glog" -) - -func main() { - tmpl := template.Must(template.ParseFiles("config.yml.tmpl")) - v := map[string][]string{ - "GoVersions": []string{"1.11"}, - "Arch": []string{"amd64", "arm", "arm64", "ppc64le", "s390x"}, - } - if err := tmpl.Execute(os.Stdout, v); err != nil { - glog.Fatalf("Error executing template: %s", err) - } -}