fix: aktualisiere Go-Version auf 1.25 und passe Dockerfile an, um das kompilierte Binary direkt zu kopieren
This commit is contained in:
@@ -19,10 +19,15 @@ jobs:
|
||||
- name: Use Go
|
||||
uses: https://github.com/actions/setup-go@v6
|
||||
with:
|
||||
go-version: '1.24'
|
||||
go-version: '1.25'
|
||||
- run: go version
|
||||
- run: ls -lha
|
||||
- run: go build -v ./...
|
||||
- run: go mod download
|
||||
- run: CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o manage-servers .
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: manage-servers-binary
|
||||
path: manage-servers
|
||||
|
||||
publish:
|
||||
needs: build
|
||||
@@ -40,6 +45,11 @@ jobs:
|
||||
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login git.hnrx.net \
|
||||
--username "${{ secrets.DOCKER_USERNAME }}" --password-stdin
|
||||
|
||||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: manage-servers-binary
|
||||
path: .
|
||||
|
||||
- name: Setup Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user