new build

This commit is contained in:
JurajKubrican
2025-08-22 18:03:49 +02:00
parent bd9c5b84be
commit 74669f15f7
3 changed files with 20 additions and 79 deletions

View File

@@ -17,6 +17,19 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.24'
- name: Install dependencies
run: |
go mod download
go mod tidy
- name: Build Go application
run: |
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -o ./server ./src
- name: Build Docker image
run: |
docker build -t "$IMAGE_NAME:latest" -t "$IMAGE_NAME:${{ github.run_number }}" .