Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiesun committed May 16, 2024
1 parent 810dd5f commit 5b7ebeb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: toughradius docker build and publish
name: logsight docker build and publish

on:
# run it on push to the default repository branch
Expand Down Expand Up @@ -44,8 +44,8 @@ jobs:
context: ./
# Note: tags has to be all lower-case
tags: |
talkincode/toughradius:latest
ghcr.io/talkincode/toughradius:latest
talkincode/logsight:latest
ghcr.io/talkincode/logsight:latest
# build on feature branches, push only on main branch
push: ${{ github.ref == 'refs/heads/main' }}

Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/release-publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: toughradius release
name: logsight release

on:
push:
Expand All @@ -22,12 +22,12 @@ jobs:
- name: Build for ARM64
run: |
mkdir -p ./release
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -a -ldflags '-s -w -extldflags "-static"' -o ./release/toughradius_arm64 main.go
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -a -ldflags '-s -w -extldflags "-static"' -o ./release/logsight_arm64 main.go
# Build for AMD64
- name: Build for AMD64
run: |
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -ldflags '-s -w -extldflags "-static"' -o ./release/toughradius_amd64 main.go
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -ldflags '-s -w -extldflags "-static"' -o ./release/logsight_amd64 main.go
- name: Create Release
id: create_release
Expand All @@ -47,8 +47,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./release/toughradius_arm64
asset_name: toughradius_arm64
asset_path: ./release/logsight_arm64
asset_name: logsight_arm64
asset_content_type: application/octet-stream

# Upload AMD64 Asset
Expand All @@ -58,8 +58,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./release/toughradius_amd64
asset_name: toughradius_amd64
asset_path: ./release/logsight_amd64
asset_name: logsight_amd64
asset_content_type: application/octet-stream

# define job to build and publish docker image
Expand Down Expand Up @@ -98,8 +98,8 @@ jobs:
context: ./
# Note: tags has to be all lower-case
tags: |
talkincode/toughradius:${{ github.ref_name }}
ghcr.io/talkincode/toughradius:${{ github.ref_name }}
talkincode/logsight:${{ github.ref_name }}
ghcr.io/talkincode/logsight:${{ github.ref_name }}
# build on feature branches, push only on main branch
push: ${{ startsWith(github.ref, 'refs/tags/') }}

Expand Down
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func setEnvIntValue(name string, val *int) {

var DefaultAppConfig = &AppConfig{
System: SysConfig{
Appid: "ToughRADIUS",
Appid: "Logsight",
Location: "Asia/Shanghai",
Workdir: "/var/logsight",
Debug: true,
Expand Down

0 comments on commit 5b7ebeb

Please sign in to comment.