Skip to content

Commit

Permalink
use droneci
Browse files Browse the repository at this point in the history
  • Loading branch information
justmiles committed Jan 29, 2023
1 parent c8e94c7 commit f621355
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 19 deletions.
51 changes: 51 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
kind: pipeline
name: default

steps:
- name: test
image: golang
commands:
- go test -race -v ./... -cover

---
kind: pipeline
name: tags
trigger:
ref:
- refs/tags/*

services:
- name: docker
image: docker:dind
privileged: true
volumes:
- name: dockersock
path: /var/run

steps:
- name: fetch
image: docker:git
commands:
- git fetch --tags

- name: release
image: goreleaser/goreleaser
environment:
GITHUB_TOKEN:
from_secret: github_token
DOCKER_AUTH_CONFIG:
from_secret: docker_auth_config
volumes:
- name: dockersock
path: /var/run
commands:
- mkdir -p $HOME/.docker
- echo $DOCKER_AUTH_CONFIG > $HOME/.docker/config.json
- goreleaser release
when:
event: tag

volumes:
- name: dockersock
temp: {}
3 changes: 3 additions & 0 deletions .goreleaser.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM scratch
COPY markdown2confluence /markdown2confluence
ENTRYPOINT [ "/markdown2confluence" ]
14 changes: 0 additions & 14 deletions Makefile

This file was deleted.

10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@ and add the binary in your local `PATH`
- Linux

```shell
curl -LO https://github.com/justmiles/go-markdown2confluence/releases/download/v3.4.2/go-markdown2confluence_3.4.2_linux_x86_64.tar.gz
curl -LO https://github.com/justmiles/go-markdown2confluence/releases/download/v3.4.3/go-markdown2confluence_3.4.3_linux_x86_64.tar.gz

sudo tar -xzvf go-markdown2confluence_3.4.2_linux_x86_64.tar.gz -C /usr/local/bin/ markdown2confluence
sudo tar -xzvf go-markdown2confluence_3.4.3_linux_x86_64.tar.gz -C /usr/local/bin/ markdown2confluence
```

- OSX

```shell
curl -LO https://github.com/justmiles/go-markdown2confluence/releases/download/v3.4.2/go-markdown2confluence_3.4.2_darwin_x86_64.tar.gz
curl -LO https://github.com/justmiles/go-markdown2confluence/releases/download/v3.4.3/go-markdown2confluence_3.4.3_darwin_x86_64.tar.gz

sudo tar -xzvf go-markdown2confluence_3.4.2_darwin_x86_64.tar.gz -C /usr/local/bin/ markdown2confluence
sudo tar -xzvf go-markdown2confluence_3.4.3_darwin_x86_64.tar.gz -C /usr/local/bin/ markdown2confluence
```

- Windows

Download [the latest release](https://github.com/justmiles/go-markdown2confluence/releases/download/v3.4.2/go-markdown2confluence_3.4.2_windows_x86_64.tar.gz) and add to your system `PATH`
Download [the latest release](https://github.com/justmiles/go-markdown2confluence/releases/download/v3.4.3/go-markdown2confluence_3.4.3_windows_x86_64.tar.gz) and add to your system `PATH`

## Use with Docker

Expand Down

0 comments on commit f621355

Please sign in to comment.