Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Commit 88b2c04

Browse files
need to pass environment variables to docker build
1 parent bfd1a09 commit 88b2c04

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
FROM microsoft/dotnet:2.1.401-sdk-alpine3.7 AS build
2+
ARG TRAVIS_BUILD_NUMBER
3+
ARG MYGET_API_KEY
24
WORKDIR /src
35

46
COPY ./src/*.sln ./
@@ -21,7 +23,7 @@ COPY ./build .
2123

2224
WORKDIR /
2325

24-
RUN dotnet run --project build/build.csproj
26+
RUN TRAVIS_BUILD_NUMBER=$TRAVIS_BUILD_NUMBER MYGET_API_KEY=$MYGET_API_KEY dotnet run --project build/build.csproj
2527

2628
WORKDIR /src/SqlStreamStore.HAL.DevServer
2729

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/env bash
22

3-
docker build .
3+
docker build --build-arg TRAVIS_BUILD_NUMBER=$TRAVIS_BUILD_NUMBER --build-arg MYGET_API_KEY=$MYGET_API_KEY .

0 commit comments

Comments
 (0)