Refactor
This commit is contained in:
@@ -10,8 +10,10 @@ jobs:
|
|||||||
name: Test and lint
|
name: Test and lint
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- name: Checkout
|
||||||
- uses: actions/setup-go@v6
|
uses: actions/checkout@v6
|
||||||
|
- name: Setup Go
|
||||||
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version-file: 'go.mod'
|
go-version-file: 'go.mod'
|
||||||
check-latest: false
|
check-latest: false
|
||||||
@@ -45,6 +47,11 @@ jobs:
|
|||||||
ls -al $(readlink -f build/hamview-collector)
|
ls -al $(readlink -f build/hamview-collector)
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
with:
|
||||||
|
config-inline: |
|
||||||
|
[registry."10.42.23.15:3000"]
|
||||||
|
http = true
|
||||||
|
insecure = true
|
||||||
- name: Log into Docker Container Registry
|
- name: Log into Docker Container Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
@@ -53,14 +60,14 @@ jobs:
|
|||||||
- name: Log into Gitea Container Registry
|
- name: Log into Gitea Container Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ vars.REGISTRY }}
|
registry: 10.42.23.15:3000
|
||||||
username: ${{ vars.DEPLOY_USER }}
|
username: ${{ vars.DEPLOY_USER }}
|
||||||
password: ${{ secrets.DEPLOY_TOKEN }}
|
password: ${{ secrets.DEPLOY_TOKEN }}
|
||||||
- name: Build and push collector container
|
- name: Build and push collector container
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ vars.REGISTRY }}/ham/hamview/collector:dev
|
tags: 10.42.23.15:3000/ham/hamview/collector:dev
|
||||||
file: ./cmd/hamview-collector/Dockerfile
|
file: ./cmd/hamview-collector/Dockerfile
|
||||||
context: .
|
context: .
|
||||||
platforms: |
|
platforms: |
|
||||||
@@ -109,6 +116,11 @@ jobs:
|
|||||||
readlink -f build/hamview-receiver-$GOARCH$GOARM
|
readlink -f build/hamview-receiver-$GOARCH$GOARM
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
with:
|
||||||
|
config-inline: |
|
||||||
|
[registry."10.42.23.15:3000"]
|
||||||
|
http = true
|
||||||
|
insecure = true
|
||||||
- name: Log into Docker Container Registry
|
- name: Log into Docker Container Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
@@ -117,14 +129,14 @@ jobs:
|
|||||||
- name: Log into Gitea Container Registry
|
- name: Log into Gitea Container Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ vars.REGISTRY }}
|
registry: 10.42.23.15:3000
|
||||||
username: ${{ vars.DEPLOY_USER }}
|
username: ${{ vars.DEPLOY_USER }}
|
||||||
password: ${{ secrets.DEPLOY_TOKEN }}
|
password: ${{ secrets.DEPLOY_TOKEN }}
|
||||||
- name: Build and push receiver container
|
- name: Build and push receiver container
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ vars.REGISTRY }}/ham/hamview/receiver:dev
|
tags: 10.42.23.15:3000/ham/hamview/receiver:dev
|
||||||
file: ./cmd/hamview-receiver/Dockerfile
|
file: ./cmd/hamview-receiver/Dockerfile
|
||||||
context: .
|
context: .
|
||||||
platforms: |
|
platforms: |
|
||||||
|
|||||||
Reference in New Issue
Block a user