From a84de69f8b1c23ec08e654347cf8a3a2965ed13d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicklas=20K=C3=B6rtge?= Date: Mon, 20 Jan 2025 14:37:49 +0100 Subject: [PATCH] update github actions, update dependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Nicklas Körtge --- ...github_registry.yml => publish_docker.yml} | 0 .github/workflows/release_binaries.yml | 45 ------------------- .github/workflows/{go.yml => test.yml} | 0 go.mod | 2 +- 4 files changed, 1 insertion(+), 46 deletions(-) rename .github/workflows/{github_registry.yml => publish_docker.yml} (100%) delete mode 100644 .github/workflows/release_binaries.yml rename .github/workflows/{go.yml => test.yml} (100%) diff --git a/.github/workflows/github_registry.yml b/.github/workflows/publish_docker.yml similarity index 100% rename from .github/workflows/github_registry.yml rename to .github/workflows/publish_docker.yml diff --git a/.github/workflows/release_binaries.yml b/.github/workflows/release_binaries.yml deleted file mode 100644 index fc8e095..0000000 --- a/.github/workflows/release_binaries.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Build Binaries - -on: - push: - branches: [ "main" ] - -jobs: - build: - name: Build Release Assets - runs-on: ubuntu-latest - - strategy: - matrix: - # Add more platforms as needed - goos: [linux, darwin, windows] - goarch: [amd64, arm64] - - steps: - - uses: actions/checkout@v4 - - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version: '1.23' - - - name: Cache Go modules - uses: actions/cache@v4 - with: - path: | - ~/go/pkg/mod - ~/go/bin - key: ${{ runner.os }}-go-${{ matrix.goos }}-${{ matrix.goarch }}-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go-${{ matrix.goos }}-${{ matrix.goarch }} - - - name: Build binary - run: | - mkdir -p dist - GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o dist/${{ github.event.repository.name }}_${{ matrix.goos }}_${{ matrix.goarch }} . - - - name: Upload build artifacts - uses: actions/upload-artifact@v4 - with: - name: binaries - path: dist/ \ No newline at end of file diff --git a/.github/workflows/go.yml b/.github/workflows/test.yml similarity index 100% rename from .github/workflows/go.yml rename to .github/workflows/test.yml diff --git a/go.mod b/go.mod index 2843a0f..9ec5faf 100644 --- a/go.mod +++ b/go.mod @@ -11,7 +11,6 @@ require ( github.com/gabriel-vasile/mimetype v1.4.8 github.com/gin-contrib/cors v1.7.2 github.com/gin-gonic/gin v1.10.0 - github.com/google/go-cmp v0.6.0 github.com/google/go-containerregistry v0.20.2 github.com/google/uuid v1.6.0 github.com/magiconair/properties v1.8.7 @@ -76,6 +75,7 @@ require ( github.com/goccy/go-json v0.10.3 // indirect github.com/gogo/protobuf v1.3.2 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect + github.com/google/go-cmp v0.6.0 // indirect github.com/h2non/filetype v1.1.3 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect