From 66f43dab7718fe6ffffcd684516792a368f4b301 Mon Sep 17 00:00:00 2001 From: apoorvam Date: Thu, 4 Jul 2019 13:00:56 +0530 Subject: [PATCH] Undo release of dunner via dunner as goreleaser is working fine with rpm package --- .goreleaser.yml | 17 +++++++++++++++-- .snap_goreleaser.yml | 17 ----------------- .travis.yml | 14 ++++++++++++-- release/.dunner.yaml | 12 ------------ release/images/Dockerfile | 7 ------- 5 files changed, 27 insertions(+), 40 deletions(-) delete mode 100644 .snap_goreleaser.yml delete mode 100644 release/.dunner.yaml delete mode 100644 release/images/Dockerfile diff --git a/.goreleaser.yml b/.goreleaser.yml index 82313ea..9a96230 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -35,8 +35,8 @@ release: draft: false name_template: "{{.ProjectName}} v{{.Version}}" -brew: - github: +brews: +- github: owner: leopardslab name: homebrew-dunner folder: Formula @@ -55,3 +55,16 @@ nfpm: - deb - rpm +snapcrafts: +- name_template: '{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}' + summary: A Docker based task runner tool + description: | + Dunner is a task runner tool like Grunt but used Docker images like CircleCI do. | + You can define tasks and steps of the tasks in your `.dunner.yaml` file and then run these steps with `Dunner do taskname` + grade: stable + confinement: strict + base: core18 + publish: true + apps: + dunner: + plugs: ["home"] diff --git a/.snap_goreleaser.yml b/.snap_goreleaser.yml deleted file mode 100644 index 0d88f4e..0000000 --- a/.snap_goreleaser.yml +++ /dev/null @@ -1,17 +0,0 @@ -project_name: dunner - -snapcraft: - name_template: '{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}' - summary: A Docker based task runner tool - description: | - Dunner is a task runner tool like Grunt but used Docker images like CircleCI do. | - You can define tasks and steps of the tasks in your `.dunner.yaml` file and then run these steps with `Dunner do taskname` - grade: stable - confinement: strict - base: core18 - publish: true - apps: - dunner: - command: bin/dunner - plugs: - - ["home"] diff --git a/.travis.yml b/.travis.yml index 89066be..bd9c11a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -47,7 +47,7 @@ deploy: - provider: script skip_cleanup: true - script: curl -sL https://git.io/goreleaser | bash -s -- --config=.snap_goreleaser.yml --rm-dist + script: curl -sL https://git.io/goreleaser | bash -s -- --rm-dist verbose: true on: tags: true @@ -57,7 +57,17 @@ deploy: - provider: script skip_cleanup: true - script: $GOPATH/bin/dunner do release_dunner -t release/.dunner.yaml + script: bash release/publish_rpm_to_bintray.sh + verbose: true + on: + tags: true + condition: "$TRAVIS_OS_NAME = linux" + branch: master + go: 1.11.x + +- provider: script + skip_cleanup: true + script: bash release/publish_deb_to_bintray.sh verbose: true on: tags: true diff --git a/release/.dunner.yaml b/release/.dunner.yaml deleted file mode 100644 index 25caf6b..0000000 --- a/release/.dunner.yaml +++ /dev/null @@ -1,12 +0,0 @@ -release_dunner: - - image: apoorvam6/ubuntu-rpm:0.0.2 - commands: - - ["rpmbuild", "--version"] - - ["curl", "-sL", "https://git.io/goreleaser", "|", "bash", "-s", "--", "--rm-dist"] - - ["./release/publish_rpm_to_bintray.sh"] - - ["./release/publish_deb_to_bintray.sh"] - envs: - - USER=`$BINTRAY_USER` - - API_KEY=`$BINTRAY_API_KEY` - mounts: - - ".:/app" \ No newline at end of file diff --git a/release/images/Dockerfile b/release/images/Dockerfile deleted file mode 100644 index 6eb0146..0000000 --- a/release/images/Dockerfile +++ /dev/null @@ -1,7 +0,0 @@ -FROM ubuntu:latest - -WORKDIR /app - -RUN apt-get update && apt-get install -y \ - rpm \ - curl