diff --git a/.github/workflows/container-image.yml b/.github/workflows/release.yml similarity index 79% rename from .github/workflows/container-image.yml rename to .github/workflows/release.yml index 9e2ce45..3b1dbb0 100644 --- a/.github/workflows/container-image.yml +++ b/.github/workflows/release.yml @@ -55,4 +55,13 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} build-args: | - VERSION={{ github.event.release.tag_name }} \ No newline at end of file + VERSION={{ github.event.release.tag_name }} + + - uses: wangyoucao577/go-release-action@v1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + goos: linux + goarch: amd64 + goversion: '1.23' + build_command: 'make build' + release_tag: ${{ github.event.release.tag_name }} \ No newline at end of file diff --git a/.gitignore b/.gitignore index cee7238..2c5772d 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,7 @@ TODO.md # ignore binary main +graphql-protect* store/ schema.graphql diff --git a/Dockerfile b/Dockerfile index f216be7..009503a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,7 +26,7 @@ USER go WORKDIR /app -COPY main /app/graphql-protect +COPY graphql-protect /app/graphql-protect EXPOSE 8080 diff --git a/go.mod b/go.mod index 8b43ae8..22038f3 100644 --- a/go.mod +++ b/go.mod @@ -2,14 +2,12 @@ module github.com/ldebruijn/graphql-protect go 1.23.2 -replace github.com/vektah/gqlparser/v2 v2.5.17 => github.com/vektah/gqlparser/v2 v2.5.18-0.20241014104546-c888731918cc - require ( cloud.google.com/go/storage v1.45.0 github.com/jedib0t/go-pretty/v6 v6.6.1 github.com/prometheus/client_golang v1.20.5 github.com/stretchr/testify v1.9.0 - github.com/vektah/gqlparser/v2 v2.5.17 + github.com/vektah/gqlparser/v2 v2.5.18 go.opentelemetry.io/contrib/exporters/autoexport v0.56.0 go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace v0.56.0 go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.56.0 diff --git a/go.sum b/go.sum index 07a247d..d5e61fa 100644 --- a/go.sum +++ b/go.sum @@ -148,8 +148,8 @@ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -github.com/vektah/gqlparser/v2 v2.5.18-0.20241014104546-c888731918cc h1:3Bplq1MxKk5xnthJdkaFH77vx7cpgv/ZXdx6Si8vq68= -github.com/vektah/gqlparser/v2 v2.5.18-0.20241014104546-c888731918cc/go.mod h1:1lz1OeCqgQbQepsGxPVywrjdBHW2T08PUS3pJqepRww= +github.com/vektah/gqlparser/v2 v2.5.18 h1:zSND3GtutylAQ1JpWnTHcqtaRZjl+y3NROeW8vuNo6Y= +github.com/vektah/gqlparser/v2 v2.5.18/go.mod h1:6HLzf7JKv9Fi3APymudztFQNmLXR5qJeEo6BOFcXVfc= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= go.opentelemetry.io/contrib/bridges/prometheus v0.56.0 h1:ax2MzrA26l3LTS2NRnagkbeKDrW4SM8VcAubasnpYqs= diff --git a/makefile b/makefile index f4f8a12..18f4aca 100644 --- a/makefile +++ b/makefile @@ -15,7 +15,7 @@ dev.setup: .PHONY: build build: - CGO_ENABLED=0 go build -ldflags "$(LDFLAGS)" -o main ./cmd/. + CGO_ENABLED=0 go build -ldflags "$(LDFLAGS)" -o graphql-protect ./cmd/. x-build: GOOS=linux GOARCH=amd64 make build