-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e959ab7
commit 255ea55
Showing
309 changed files
with
27,120 additions
and
27,120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
version: 2 | ||
updates: | ||
# For the Golang application | ||
- package-ecosystem: "gomod" # This is for Golang modules | ||
directory: "/" # Adjust if your Golang module manifest (go.mod) is in a subdirectory | ||
schedule: | ||
interval: "weekly" # Dependabot will check for updates weekly | ||
|
||
# For the React application | ||
- package-ecosystem: "npm" # This is for npm packages used by your React app | ||
directory: "/ui/" # Replace with the path to your React app's directory where package.json is located | ||
schedule: | ||
interval: "weekly" # Dependabot will check for updates weekly | ||
version: 2 | ||
updates: | ||
# For the Golang application | ||
- package-ecosystem: "gomod" # This is for Golang modules | ||
directory: "/" # Adjust if your Golang module manifest (go.mod) is in a subdirectory | ||
schedule: | ||
interval: "weekly" # Dependabot will check for updates weekly | ||
|
||
# For the React application | ||
- package-ecosystem: "npm" # This is for npm packages used by your React app | ||
directory: "/ui/" # Replace with the path to your React app's directory where package.json is located | ||
schedule: | ||
interval: "weekly" # Dependabot will check for updates weekly |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,42 @@ | ||
name: Build and Push Docker Image | ||
on: | ||
create: | ||
tags: | ||
- '*' | ||
jobs: | ||
build-and-push: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Clean up directories | ||
run: | | ||
sudo rm -rf "/usr/local/share/boost" | ||
sudo rm -rf "$AGENT_TOOLSDIRECTORY" | ||
- name: Clean up Docker | ||
run: | | ||
docker system prune -af | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- name: Build and Push Docker Image | ||
env: | ||
DOCKER_BUILDKIT: 1 | ||
run: | | ||
docker buildx create --use | ||
# Ensure experimental features are enabled for squashing | ||
export DOCKER_CLI_EXPERIMENTAL=enabled | ||
docker buildx build --squash -t ${{ secrets.DOCKER_USERNAME }}/blackdagger:latest --push . | ||
name: Build and Push Docker Image | ||
on: | ||
create: | ||
tags: | ||
- '*' | ||
jobs: | ||
build-and-push: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Clean up directories | ||
run: | | ||
sudo rm -rf "/usr/local/share/boost" | ||
sudo rm -rf "$AGENT_TOOLSDIRECTORY" | ||
- name: Clean up Docker | ||
run: | | ||
docker system prune -af | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- name: Build and Push Docker Image | ||
env: | ||
DOCKER_BUILDKIT: 1 | ||
run: | | ||
docker buildx create --use | ||
# Ensure experimental features are enabled for squashing | ||
export DOCKER_CLI_EXPERIMENTAL=enabled | ||
docker buildx build --squash -t ${{ secrets.DOCKER_USERNAME }}/blackdagger:latest --push . | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,85 +1,85 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- "v[0-9]+.[0-9]+.[0-9]+" | ||
- "v[0-9]+.[0-9]+.[0-9]+-*" | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened # new commits are pushed to the branch that the PR is based on | ||
- synchronize # new commits are pushed to the branch that the PR is based on | ||
- ready_for_review # PR is ready for review | ||
|
||
jobs: | ||
|
||
# # Spell check | ||
# codespell: | ||
# name: Check for spelling errors | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v4 | ||
|
||
# - name: Codespell | ||
# uses: codespell-project/actions-codespell@v2 | ||
|
||
# Lint Go code | ||
golint: | ||
name: Go Linter | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: go.mod | ||
|
||
- name: Run golangci-lint | ||
uses: golangci/golangci-lint-action@v6 | ||
with: | ||
version: v1.59 | ||
args: --timeout=10m | ||
|
||
# Test Go code | ||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: go.mod | ||
|
||
- name: Cache Go modules | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.cache/go-build | ||
~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: Build | ||
run: | | ||
make build-bin | ||
- name: Test | ||
run: | | ||
make test-coverage | ||
- name: Upload coverage | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
files: ./coverage.txt | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- "v[0-9]+.[0-9]+.[0-9]+" | ||
- "v[0-9]+.[0-9]+.[0-9]+-*" | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened # new commits are pushed to the branch that the PR is based on | ||
- synchronize # new commits are pushed to the branch that the PR is based on | ||
- ready_for_review # PR is ready for review | ||
|
||
jobs: | ||
|
||
# # Spell check | ||
# codespell: | ||
# name: Check for spelling errors | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v4 | ||
|
||
# - name: Codespell | ||
# uses: codespell-project/actions-codespell@v2 | ||
|
||
# Lint Go code | ||
golint: | ||
name: Go Linter | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: go.mod | ||
|
||
- name: Run golangci-lint | ||
uses: golangci/golangci-lint-action@v6 | ||
with: | ||
version: v1.59 | ||
args: --timeout=10m | ||
|
||
# Test Go code | ||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: go.mod | ||
|
||
- name: Cache Go modules | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.cache/go-build | ||
~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: Build | ||
run: | | ||
make build-bin | ||
- name: Test | ||
run: | | ||
make test-coverage | ||
- name: Upload coverage | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
files: ./coverage.txt | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
# binaries | ||
bin/ | ||
dist/ | ||
|
||
# frontend assets | ||
internal/frontend/assets/fonts/* | ||
internal/frontend/assets/* | ||
!internal/frontend/assets/.gitkeep | ||
|
||
# NVM | ||
.nvmrc | ||
|
||
# tmp files | ||
tmp/* | ||
|
||
# MacOS | ||
.DS_Store | ||
|
||
# Goland | ||
.idea | ||
|
||
# Directory for local development | ||
.local/ | ||
|
||
# Coverage files | ||
coverage.* | ||
|
||
#VSCode files | ||
# binaries | ||
bin/ | ||
dist/ | ||
|
||
# frontend assets | ||
internal/frontend/assets/fonts/* | ||
internal/frontend/assets/* | ||
!internal/frontend/assets/.gitkeep | ||
|
||
# NVM | ||
.nvmrc | ||
|
||
# tmp files | ||
tmp/* | ||
|
||
# MacOS | ||
.DS_Store | ||
|
||
# Goland | ||
.idea | ||
|
||
# Directory for local development | ||
.local/ | ||
|
||
# Coverage files | ||
coverage.* | ||
|
||
#VSCode files | ||
.vscode |
Oops, something went wrong.