Skip to content

Commit

Permalink
Prepare release
Browse files Browse the repository at this point in the history
  • Loading branch information
ikedam committed Oct 1, 2023
1 parent e768b1b commit 57438cf
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Release ikedam/arar
on:
push:
tags:
- v*
jobs:
release:
name: Release to Github
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# Required for changelog
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.21
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26 changes: 26 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
before:
hooks:
- go mod download
builds:
- goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=0
main: ./cmd/arar
archives:
- format: binary
checksum:
name_template: checksums.txt
snapshot:
name_template: '{{ .Tag }}-next'
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
9 changes: 9 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
The MIT License (MIT)

Copyright 2023 IKEDA Yasuyuki

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ And you cannot specify the role to assume with environment variable. You always
Those limitations are really hard to use in CI/CD. `arar` provides those mechanisms.


Install
-------

Download binary from [Releases](https://github.com/ikedam/arar/releases).


Usage
-----

Expand Down Expand Up @@ -50,6 +56,7 @@ arar \
aws sts get-caller-identity
```


MFA support
-----------

Expand All @@ -62,6 +69,7 @@ arar \
aws sts get-caller-identity
```


Automatic session name with IAM user name
-----------------------------------------

Expand All @@ -71,3 +79,9 @@ This is useful when the role is configured with `"sts:RoleSessionName": "${aws:u
```console
arar -u -- aws sts get-caller-identity
```


License
-------

[MIT](./LICENSE)

0 comments on commit 57438cf

Please sign in to comment.