From 59b3316c35980e1d24a3b70fd7bd1fef990cb1d9 Mon Sep 17 00:00:00 2001 From: Aaron Fischer Date: Thu, 19 Oct 2023 22:50:21 +0200 Subject: [PATCH] x --- .forgejo/workflows/{build.yaml => build.yaml-disabled} | 0 Dockerfile | 2 +- generate-spaceapi-types.sh | 3 +++ 3 files changed, 4 insertions(+), 1 deletion(-) rename .forgejo/workflows/{build.yaml => build.yaml-disabled} (100%) 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")"