diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml-disabled similarity index 100% rename from .forgejo/workflows/build.yaml rename to .forgejo/workflows/build.yaml-disabled diff --git a/Dockerfile b/Dockerfile index 834f5a7..589183d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM golang:alpine AS build COPY . /app WORKDIR /app -RUN GOOS=linux go generate +RUN ./generate-spaceapi-types.sh RUN GOOS=linux go build -o oko-spaceapi cmd/server.go FROM alpine diff --git a/generate-spaceapi-types.sh b/generate-spaceapi-types.sh index ff3fe14..7253fba 100755 --- a/generate-spaceapi-types.sh +++ b/generate-spaceapi-types.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash +set -e +set -x + script="$(realpath "${BASH_SOURCE[-1]}")" path="$(dirname "$script")"