Skip to content

Commit

Permalink
version and workflow update
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsandeep committed Nov 13, 2021
1 parent aba776b commit 1c88d3b
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 30 deletions.
31 changes: 18 additions & 13 deletions .github/workflows/dockerhub-push.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,39 @@
name: 🌥 Docker Push

on:
release:
types: [published]
workflow_run:
workflows: ["🎉 Release Binary"]
types:
- completed
workflow_dispatch:

jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Checkout
- name: Git Checkout
uses: actions/checkout@v2
-
name: Set up QEMU

- name: Get Github tag
id: meta
run: |
echo "::set-output name=tag::$(curl --silent "https://api.github.com/repos/projectdiscovery/notify/releases/latest" | jq -r .tag_name)"
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
-
name: Build and push

- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64,linux/arm64,linux/arm
push: true
tags: projectdiscovery/notify:latest
tags: projectdiscovery/notify:latest,projectdiscovery/notify:${{ steps.meta.outputs.tag }}
2 changes: 1 addition & 1 deletion .github/workflows/release-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
name: "Set up Go"
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.17
-
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
Expand Down
29 changes: 15 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,25 +51,26 @@ notify -h

This will display help for the tool. Here are all the switches it supports.

| Flag | Description | Example |
| ---------------- | ----------------------------------------------- | --------------------------------- |
| -config | Notify configuration file | notify -config config.yaml |
| -silent | Don't print the banner | notify -silent |
| -version | Show version of notify | notify -version |
| -v | Show Verbose output | notify -v |
| -no-color | Don't Use colors in output | notify -no-color |
| -data | File path to read data from | notify -data test.txt |
| -bulk | Read and send data in bulk from file. | notify -bulk |
| -char-limit | Character limit for message (default 4000) | notify -char-limit 2000 |
| -provider-config | provider config path | notify -provider-config conf.yaml |
| -provider | provider to send the notification to (optional) | notify -provider slack,telegram |
| -id | id to send the notification to (optional) | notify -id recon,scans |
| Flag | Description | Example |
|------------------|----------------------------------------------------|----------------------------|
| -config | Notify configuration file | notify -config config.yaml |
| -silent | Don't print the banner | notify -silent |
| -version | Show version of notify | notify -version |
| -v | Show Verbose output | notify -v |
| -no-color | Don't Use colors in output | notify -nc |
| -data | File path to read data from | notify -i test.txt |
| -bulk | Read and send data in bulk from file. | notify -bulk |
| -char-limit | Character limit for message (default 4000) | notify -cl 2000 |
| -provider-config | provider config path | notify -pc provider.yaml |
| -provider | provider to send the notification to (optional) | notify -p slack,telegram |
| -id | id to send the notification to (optional) | notify -id recon,scans |
| -rate-limit | maximum number of HTTP requests to send per second | notify -rl 1 |


# Notify Installation

```sh
GO111MODULE=on go get -v github.com/projectdiscovery/notify/cmd/notify
go install -v github.com/projectdiscovery/notify/cmd/notify@latest
```

### Provider Config
Expand Down
4 changes: 2 additions & 2 deletions internal/runner/banner.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ const banner = `
__ _ ___
___ ___ / /_(_) _/_ __
/ _ \/ _ \/ __/ / _/ // /
/_//_/\___/\__/_/_/ \_, / v1.0.0-dev
/_//_/\___/\__/_/_/ \_, / v1.0.1
/___/
`

// Version is the current version
const Version = `1.0.0-dev`
const Version = `1.0.1`

// showBanner is used to show the banner to the user
func showBanner() {
Expand Down

0 comments on commit 1c88d3b

Please sign in to comment.