Skip to content

Commit

Permalink
Added workflow to push to docker registry, updated README.md and fixe…
Browse files Browse the repository at this point in the history
…d typos
  • Loading branch information
biagiopietro committed Mar 3, 2024
1 parent 7d02ce1 commit 4620c89
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
**/.DS_Store
**/.classpath
**/.dockerignore
**/.goreleaser.yaml
**/compose.yaml
**/.env
**/.git
**/.gitignore
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,26 @@ jobs:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
dockerize-and-push:
runs-on: ubuntu-latest
needs: goreleaser
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
target: final
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/gtfocli:latest
${{ secrets.DOCKERHUB_USERNAME }}/gtfocli:${{ github.ref_name }}
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,8 @@ gtfocli search -f windowsExecutableList.txt --os windows

Search for binary `Winget` and print output in `yaml` format (see `-h` for available formats)
```shell
gtfocli search tar -o yaml --os windows
gtfocli search Winget -o yaml --os windows
```

## Contributing
You want to contribute to this project? Wow, thanks! So please just fork it and send me a pull request.

2 changes: 1 addition & 1 deletion cmd/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
var updateCmd = &cobra.Command{
Use: constants.Update,
Short: "Update gtfocli database.",
Long: "Download sources use but gtfocli to run offline search.",
Long: "Download sources used by gtfocli to run offline search.",
Run: func(cmd *cobra.Command, args []string) {
logger.Init(constants.Update, IsDebug())
err := downloadFiles()
Expand Down

0 comments on commit 4620c89

Please sign in to comment.