Skip to content

Commit

Permalink
docker镜像适配zimaOS
Browse files Browse the repository at this point in the history
  • Loading branch information
matteriot committed Mar 1, 2025
1 parent 18c34f8 commit cd0bcf4
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 2 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/dockerhub-description.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Update Docker Hub Description
on:
push:
branches:
- master
paths:
- README.md
- .github/workflows/dockerhub-description.yml

jobs:
dockerHubDescription:
runs-on: ubuntu-latest
if: github.repository == 'OpenIoTHub/gateway-go'
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v4
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: ${{ secrets.DOCKER_USERNAME }}/gateway-go
short-description: ${{ github.event.repository.description }}
14 changes: 12 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,29 @@ jobs:
mkdir -p $HOME/.cache/snapcraft/stage-packages
- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: openiothub
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.MY_GITHUB_TOKEN }}

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
if: startsWith(github.ref, 'refs/tags/')
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}

gomobile-android-libs:
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 1 addition & 0 deletions client/aar.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ func start() {
go func() {
http.HandleFunc("/", services.GatewayManager.IndexHandler)
http.HandleFunc("/DisplayQrHandler", services.GatewayManager.DisplayQrHandler)
//不同的系统打印不一样
log.Printf("Http 监听端口: %d\n", config.ConfigMode.HttpServicePort)
if err := http.ListenAndServe(fmt.Sprintf(":%d", config.ConfigMode.HttpServicePort), nil); err != nil {
log.Printf("Failed to start server: %s\n", err)
Expand Down

0 comments on commit cd0bcf4

Please sign in to comment.