Skip to content

Commit

Permalink
Setup goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
yottahmd committed Apr 23, 2022
1 parent c5212ec commit b06d4dd
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release
on:
create:
tags:
- '*'

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.17.x

- name: Check out code
uses: actions/checkout@v3

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{secrets.JOBCTL_GITHUB_TOKEN}}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ bin/*

# tmp files
tmp/*

dist/
31 changes: 31 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
# you may remove this if you don't need go generate
- go generate ./...
builds:
- dir: cmd
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
archives:
- replacements:
darwin: Darwin
linux: Linux
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,15 @@ jobctl is a single command that generates and executes a [DAG (Directed acyclic
- [jobctl](#jobctl)
- [Contents](#contents)
- [Features](#features)
- [Installation](#installation)
- [Linux](#linux)
- [MacOS (ARM64)](#macos-arm64)
- [MacOS (ARM64)](#macos-arm64-1)
- [Use cases](#use-cases)
- [User interface](#user-interface)
- [Architecture](#architecture)
- [Getting started](#getting-started)
- [Installation](#installation)
- [Installation](#installation-1)
- [Usage](#usage)
- [Configuration](#configuration)
- [Environment variables](#environment-variables)
Expand Down Expand Up @@ -52,6 +56,19 @@ jobctl is a single command that generates and executes a [DAG (Directed acyclic
- onExit / onSuccess / onFailure / onCancel handlers
- Automatic data cleaning

## Installation
Download the binary from [Releases page](https://github.com/jobctl/jobctl/releases) and place it on your system.

### Linux
```
sudo wget https://github.com/jobctl/jobctl/releases/latest/download/jobctl_linux_amd64 -O /usr/local/bin/jobctl
sudo chmod +x /usr/local/bin/jobctl
```

### MacOS (ARM64)

### MacOS (ARM64)

## Use cases
- ETL Pipeline
- Batches
Expand Down

0 comments on commit b06d4dd

Please sign in to comment.