Skip to content

Commit

Permalink
Merge pull request #260 from projectdiscovery/dev
Browse files Browse the repository at this point in the history
v1.0.2 Release
  • Loading branch information
ehsandeep committed Nov 27, 2022
2 parents 802ff6f + 3c17cc3 commit 0baebeb
Show file tree
Hide file tree
Showing 14 changed files with 583 additions and 180 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 🔨 Build Test

on:
push:
pull_request:
workflow_dispatch:

Expand All @@ -10,12 +10,13 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
go-version: [1.18.x, 1.19.x]
os: [ubuntu-latest, windows-latest, macOS-12]
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.17
go-version: ${{ matrix.go-version }}

- name: Check out code
uses: actions/checkout@v3
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/dockerhub-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ jobs:
- name: Get Github tag
id: meta
run: |
echo "::set-output name=tag::$(curl --silent "https://api.github.com/repos/projectdiscovery/cloudlist/releases/latest" | jq -r .tag_name)"
curl --silent "https://api.github.com/repos/projectdiscovery/cloudlist/releases/latest" | jq -r .tag_name | xargs -I {} echo TAG={} >> $GITHUB_OUTPUT
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

Expand All @@ -36,4 +37,4 @@ jobs:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: projectdiscovery/cloudlist:latest,projectdiscovery/cloudlist:${{ steps.meta.outputs.tag }}
tags: projectdiscovery/cloudlist:latest,projectdiscovery/cloudlist:${{ steps.meta.outputs.TAG }}
8 changes: 6 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 🙏🏻 Lint Test

on:
push:
pull_request:
workflow_dispatch:

Expand All @@ -9,10 +9,14 @@ jobs:
name: Lint Test
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
- name: Checkout code
uses: actions/checkout@v3
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3.2.0
uses: golangci/golangci-lint-action@v3.3.1
with:
version: latest
args: --timeout 5m
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: 🎉 Release Binary

on:
push:
tags:
Expand All @@ -12,12 +13,13 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.17
go-version: 1.18

- uses: goreleaser/goreleaser-action@v3
with:
args: "release --rm-dist"
version: latest
workdir: .
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
SLACK_WEBHOOK: "${{ secrets.RELEASE_SLACK_WEBHOOK }}"
4 changes: 2 additions & 2 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 👮🏼‍♂️ Sonarcloud

on:
push:
branches:
- main
- dev
Expand All @@ -20,7 +20,7 @@ jobs:
- name: "Set up Go"
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.18

- name: Run unit Tests
run: |
Expand Down
11 changes: 9 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ builds:
goarch: 'arm64'

binary: '{{ .ProjectName }}'
main: cmd/cloudlist/main.go
main: cmd/{{ .ProjectName }}/main.go

flags:
- -trimpath
Expand All @@ -35,4 +35,11 @@ archives:
darwin: macOS

checksum:
algorithm: sha256
algorithm: sha256

announce:
slack:
enabled: true
channel: '#release'
username: GoReleaser
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM golang:1.18.3-alpine AS builder
FROM golang:1.19.3-alpine AS builder
RUN apk add --no-cache git
RUN go install -v github.com/projectdiscovery/cloudlist/cmd/cloudlist@latest

FROM alpine:3.16.0
FROM alpine:3.16.3
RUN apk -U upgrade --no-cache \
&& apk add --no-cache bind-tools ca-certificates
COPY --from=builder /go/bin/cloudlist /usr/local/bin/
Expand Down
33 changes: 16 additions & 17 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,33 @@ module github.com/projectdiscovery/cloudlist
go 1.14

require (
github.com/Azure/azure-sdk-for-go v65.0.0+incompatible
github.com/Azure/go-autorest/autorest v0.11.27
github.com/Azure/azure-sdk-for-go v67.0.0+incompatible
github.com/Azure/go-autorest/autorest v0.11.28
github.com/Azure/go-autorest/autorest/azure/auth v0.5.11
github.com/Azure/go-autorest/autorest/to v0.4.0 // indirect
github.com/Azure/go-autorest/autorest/validation v0.3.1 // indirect
github.com/aliyun/alibaba-cloud-sdk-go v1.61.1623
github.com/aws/aws-sdk-go v1.44.24
github.com/cloudflare/cloudflare-go v0.37.0
github.com/digitalocean/godo v1.80.0
github.com/HdrHistogram/hdrhistogram-go v1.1.2 // indirect
github.com/aliyun/alibaba-cloud-sdk-go v1.62.2
github.com/aws/aws-sdk-go v1.44.121
github.com/cloudflare/cloudflare-go v0.53.0
github.com/digitalocean/godo v1.89.0
github.com/dnaeon/go-vcr v1.1.0 // indirect
github.com/fastly/go-fastly/v3 v3.12.0
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/hashicorp/consul/api v1.13.0
github.com/hashicorp/consul/api v1.15.3
github.com/hashicorp/nomad/api v0.0.0-20210711205811-0ef51f1383ff
github.com/heroku/heroku-go/v5 v5.4.1
github.com/hetznercloud/hcloud-go v1.33.2
github.com/heroku/heroku-go/v5 v5.5.0
github.com/hetznercloud/hcloud-go v1.37.0
github.com/json-iterator/go v1.1.12
github.com/linode/linodego v1.6.0
github.com/miekg/dns v1.1.43 // indirect
github.com/linode/linodego v1.9.3
github.com/namecheap/go-namecheap-sdk/v2 v2.0.0-20210701132211-e8fe6bd652dd
github.com/pkg/errors v0.9.1
github.com/projectdiscovery/fileutil v0.0.0-20210601061022-8ef4fc6fbfb6
github.com/projectdiscovery/goflags v0.0.7
github.com/projectdiscovery/goflags v0.1.3
github.com/projectdiscovery/gologger v1.1.4
github.com/projectdiscovery/iputil v0.0.0-20210705072957-5a968407979b
github.com/projectdiscovery/utils v0.0.3
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.7
github.com/stretchr/testify v1.7.1
golang.org/x/oauth2 v0.0.0-20220524215830-622c5d57e401
google.golang.org/api v0.82.0
github.com/stretchr/testify v1.8.1
golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783
google.golang.org/api v0.103.0
gopkg.in/yaml.v2 v2.4.0
)
Loading

0 comments on commit 0baebeb

Please sign in to comment.