Fix Docker builds (#239)

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
Daniel Weiße 2022-06-29 16:40:43 +02:00 committed by GitHub
parent f9a581f329
commit b0aafd0c2a
3 changed files with 3 additions and 3 deletions

View File

@ -30,5 +30,5 @@ jobs:
with: with:
name: kmsserver name: kmsserver
projectVersion: '0.0.0' projectVersion: '0.0.0'
dockerfile: kms/server/Dockerfile dockerfile: kms/Dockerfile
githubToken: ${{ secrets.GITHUB_TOKEN }} githubToken: ${{ secrets.GITHUB_TOKEN }}

View File

@ -43,7 +43,7 @@ jobs:
"activation-service" ) "activation-service" )
echo "microServiceDockerfile=activation/Dockerfile" >> $GITHUB_ENV ;; echo "microServiceDockerfile=activation/Dockerfile" >> $GITHUB_ENV ;;
"kmsserver" ) "kmsserver" )
echo "microServiceDockerfile=kms/server/Dockerfile" >> $GITHUB_ENV ;; echo "microServiceDockerfile=kms/Dockerfile" >> $GITHUB_ENV ;;
"verification-service" ) "verification-service" )
echo "microServiceDockerfile=verify/Dockerfile" >> $GITHUB_ENV ;; echo "microServiceDockerfile=verify/Dockerfile" >> $GITHUB_ENV ;;
esac esac

View File

@ -23,7 +23,7 @@ RUN rm -rf ./hack/
# Build # Build
RUN mkdir -p /constellation/build RUN mkdir -p /constellation/build
WORKDIR /constellation/kms/server/cmd WORKDIR /constellation/kms/cmd
ARG PROJECT_VERSION=0.0.0 ARG PROJECT_VERSION=0.0.0
RUN CGO_ENABLED=0 go build -o /constellation/build/kmsserver -trimpath -buildvcs=false -ldflags "-s -w -buildid='' -X github.com/edgelesssys/constellation/internal/constants.VersionInfo=${PROJECT_VERSION}" RUN CGO_ENABLED=0 go build -o /constellation/build/kmsserver -trimpath -buildvcs=false -ldflags "-s -w -buildid='' -X github.com/edgelesssys/constellation/internal/constants.VersionInfo=${PROJECT_VERSION}"