Skip to content

Commit

Permalink
chore: fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias committed May 11, 2019
1 parent 1e6a093 commit 8ec2773
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 112 deletions.
30 changes: 22 additions & 8 deletions .circleci/config.yml
Expand Up @@ -28,7 +28,7 @@ jobs:
- '*'
build-go:
docker:
- image: circleci/golang
- image: circleci/golang:1.12
steps:
- attach_workspace:
at: '~/project'
Expand All @@ -37,7 +37,9 @@ jobs:
command: ./wizard.sh -c
- run:
name: "Cleanup"
command: rm -rf frontend/build
command: |
rm -rf frontend/build
git checkout -- go.sum # TODO: why is it being changed?
- persist_to_workspace:
root: .
paths:
Expand All @@ -59,18 +61,30 @@ jobs:
- '*'
release:
docker:
- image: circleci/golang:1.10
- image: circleci/golang:1.12
steps:
- attach_workspace:
at: '~/project'
- setup_remote_docker
- run: docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
- run: curl -sL https://git.io/goreleaser | bash
- run: docker logout
workflows:
version: 2
build-workflow:
jobs:
- lint
- build-node
- lint:
filters:
tags:
only: /.*/
- build-node:
filters:
tags:
only: /.*/
- build-go:
filters:
tags:
only: /.*/
requires:
- build-node
- lint
Expand All @@ -79,10 +93,10 @@ workflows:
requires:
- build-go
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/
tags:
only: /^v[0-9]+(\.[0-9]+)*$/
- docker-latest:
context: deploy
requires:
Expand All @@ -91,4 +105,4 @@ workflows:
branches:
only: master
tags:
ignore: /^v[0-9]+(\.[0-9]+)*$/
ignore: /.*/
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -3,4 +3,5 @@
*.bak
_old
rice-box.go
.idea/
.idea/
filebrowser
2 changes: 1 addition & 1 deletion frontend
22 changes: 2 additions & 20 deletions go.mod
Expand Up @@ -5,56 +5,38 @@ require (
github.com/GeertJohan/go.rice v1.0.0
github.com/Sereal/Sereal v0.0.0-20190430203904-6faf9605eb56 // indirect
github.com/asdine/storm v2.1.2+incompatible
github.com/boltdb/bolt v1.3.1 // indirect
github.com/coreos/etcd v3.3.13+incompatible // indirect
github.com/coreos/go-semver v0.3.0 // indirect
github.com/daaku/go.zipexe v1.0.1 // indirect
github.com/dgrijalva/jwt-go v3.2.0+incompatible
github.com/dsnet/compress v0.0.1 // indirect
github.com/golang/mock v1.3.0 // indirect
github.com/golang/protobuf v1.3.1 // indirect
github.com/golang/snappy v0.0.1 // indirect
github.com/gorilla/context v1.1.1 // indirect
github.com/gorilla/mux v1.7.1
github.com/gorilla/websocket v1.4.0
github.com/hacdias/fileutils v0.0.0-20181202104838-227b317161a1
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0 // indirect
github.com/klauspost/compress v1.5.0 // indirect
github.com/klauspost/cpuid v1.2.1 // indirect
github.com/kr/pretty v0.1.0 // indirect
github.com/kr/pty v1.1.4 // indirect
github.com/kylelemons/godebug v1.1.0 // indirect
github.com/lucas-clemente/quic-go v0.11.1 // indirect
github.com/magiconair/properties v1.8.1 // indirect
github.com/maruel/natural v0.0.0-20180416170133-dbcb3e2e8cf1
github.com/mholt/archiver v3.1.1+incompatible
github.com/mholt/caddy v1.0.0
github.com/mholt/certmagic v0.5.1 // indirect
github.com/miekg/dns v1.1.9 // indirect
github.com/mitchellh/go-homedir v1.1.0
github.com/nkovacs/streamquote v1.0.0 // indirect
github.com/nwaples/rardecode v1.0.0 // indirect
github.com/pelletier/go-toml v1.4.0
github.com/pierrec/lz4 v0.0.0-20190131084431-473cd7ce01a1 // indirect
github.com/pkg/profile v1.3.0 // indirect
github.com/russross/blackfriday v2.0.0+incompatible // indirect
github.com/shurcooL/sanitized_anchor_name v1.0.0 // indirect
github.com/spf13/afero v1.2.2
github.com/spf13/cobra v0.0.3
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.3
github.com/spf13/viper v1.3.2
github.com/stretchr/objx v0.2.0 // indirect
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8 // indirect
go.etcd.io/bbolt v1.3.2
golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529
golang.org/x/net v0.0.0-20190509222800-a4d6f7feada5 // indirect
golang.org/x/sys v0.0.0-20190509141414-a5b02f93d862 // indirect
golang.org/x/text v0.3.2 // indirect
golang.org/x/tools v0.0.0-20190511041617-99f201b6807e // indirect
google.golang.org/appengine v1.5.0 // indirect
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
gopkg.in/natefinch/lumberjack.v2 v2.0.0
gopkg.in/square/go-jose.v2 v2.3.1 // indirect
gopkg.in/yaml.v2 v2.2.2
)

0 comments on commit 8ec2773

Please sign in to comment.