Skip to content

Commit

Permalink
chore(*): -
Browse files Browse the repository at this point in the history
  • Loading branch information
enenumxela committed Oct 14, 2024
1 parent 75ed475 commit 8a986ee
Show file tree
Hide file tree
Showing 25 changed files with 1,215 additions and 495 deletions.
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.github
bin
.gitignore
.golangci.yaml
.goreleaser.yaml
CONTRIBUTING.md
LICENSE
README.md
10 changes: 5 additions & 5 deletions .github/workflows/build-test.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 🔨 Build Test
name: 🔨 Build

on:
push:
Expand All @@ -17,17 +17,17 @@ on:

jobs:
build:
name: Build Test
name: Build
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-12]
runs-on: ${{ matrix.os }}
steps:
-
name: Set up Go
uses: actions/setup-go@v5
uses: actions/setup-go@v4
with:
go-version: '>=1.21'
go-version: '>=1.23'
-
name: Checkout the repository
uses: actions/checkout@v4
Expand All @@ -42,4 +42,4 @@ jobs:
-
name: Go build
run: go build -v .
working-directory: ./cmd/xsubfind3r
working-directory: ./cmd/xcrawl3r
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 🚨 CodeQL Analysis
name: 🚨 Analyze Code (CodeQL)

on:
push:
Expand All @@ -17,30 +17,30 @@ on:

jobs:
analyze:
name: CodeQL Analysis
name: Analyze Code (CodeQL)
strategy:
fail-fast: false
matrix:
language: [ 'go' ]
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'go' ]

steps:
-
name: Checkout repository
-
name: Checkout the repository
uses: actions/checkout@v4
with:
fetch-depth: 0
-
name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
-
name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3
-
name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
44 changes: 44 additions & 0 deletions .github/workflows/dockerhub-push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: 🐋 DockerHub Push

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

jobs:
push:
name: DockerHub Push
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
attestations: write
id-token: write
steps:
-
name: Checkout
uses: actions/checkout@v4

-
name: Get Github tag
id: meta
run: |
curl --silent "https://api.github.com/repos/hueristiq/xcrawl3r/releases/latest" | jq -r .tag_name | xargs -I {} echo TAG={} >> $GITHUB_OUTPUT
-
name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

-
name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
push: true
tags: hueristiq/xcrawl3r:latest,hueristiq/xcrawl3r:${{ steps.meta.outputs.TAG }}
10 changes: 5 additions & 5 deletions .github/workflows/lint-test.yml → .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 💅 Lint Test
name: 💅🏻 Lint

on:
push:
Expand All @@ -20,14 +20,14 @@ permissions:

jobs:
lint:
name: Lint Test
name: Lint
runs-on: ubuntu-latest
steps:
-
name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '>=1.21'
go-version: '>=1.23'
cache: false
-
name: Checkout the repository
Expand All @@ -36,8 +36,8 @@ jobs:
fetch-depth: 0
-
name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6
with:
version: v1.54.2
version: v1.61.0
args: --timeout 5m
working-directory: .
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
steps:
-
name: Set up Go
uses: actions/setup-go@v5
uses: actions/setup-go@v4
with:
go-version: '>=1.21'
go-version: '>=1.23'
-
name: Checkout the repository
uses: actions/checkout@v4
Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
# Executable

bin
Loading

0 comments on commit 8a986ee

Please sign in to comment.