File tree Expand file tree Collapse file tree 5 files changed +21
-4
lines changed Expand file tree Collapse file tree 5 files changed +21
-4
lines changed Original file line number Diff line number Diff line change 4
4
jobs :
5
5
build :
6
6
docker :
7
- - image : mcr.microsoft.com/dotnet/sdk:6.0-alpine
7
+ - image : mijitt0m/ocelot-build:0.0.5
8
8
steps :
9
9
- checkout
10
10
- run : dotnet tool restore && dotnet cake
11
11
release :
12
12
docker :
13
- - image : mcr.microsoft.com/dotnet/sdk:6.0-alpine
13
+ - image : mijitt0m/ocelot-build:0.0.5
14
14
steps :
15
15
- checkout
16
16
- run : dotnet tool restore && dotnet cake --target=Release
Original file line number Diff line number Diff line change
1
+ # syntax=docker/dockerfile:1
2
+ FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine
3
+
4
+ RUN apk add bash icu-libs krb5-libs libgcc libintl libssl1.1 libstdc++ zlib
5
+
6
+ RUN curl -L --output ./dotnet-install.sh https://dot.net/v1/dotnet-install.sh
7
+
8
+ RUN chmod u+x ./dotnet-install.sh
9
+
10
+ RUN ./dotnet-install.sh -c 5.0
Original file line number Diff line number Diff line change 2
2
# call from ocelot repo root with
3
3
# docker build --platform linux/arm64 --build-arg OCELOT_COVERALLS_TOKEN=$OCELOT_COVERALLS_TOKEN -f ./docker/Dockerfile.build .
4
4
# docker build --platform linux/amd64 --build-arg OCELOT_COVERALLS_TOKEN=$OCELOT_COVERALLS_TOKEN -f ./docker/Dockerfile.build .
5
- FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine AS build-env
5
+ FROM mijitt0m/ocelot-build:0.0.5
6
6
7
7
ARG OCELOT_COVERALLS_TOKEN
8
8
Original file line number Diff line number Diff line change 2
2
# call from ocelot repo root with
3
3
# docker build --platform linux/arm64 --build-arg OCELOT_COVERALLS_TOKEN=$OCELOT_COVERALLS_TOKEN --build-arg OCELOT_GITHUB_API_KEY=$OCELOT_GITHUB_API_KEY --build-arg OCELOT_COVERALLS_TOKEN=$OCELOT_COVERALLS_TOKEN -f ./docker/Dockerfile.build .
4
4
# docker build --platform linux/amd64 --build-arg OCELOT_COVERALLS_TOKEN=$OCELOT_COVERALLS_TOKEN --build-arg OCELOT_GITHUB_API_KEY=$OCELOT_GITHUB_API_KEY --build-arg OCELOT_COVERALLS_TOKEN=$OCELOT_COVERALLS_TOKEN -f ./docker/Dockerfile.build .
5
- FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine AS build-env
5
+ FROM mijitt0m/ocelot-build:0.0.5
6
6
7
7
ARG OCELOT_COVERALLS_TOKEN
8
8
ARG OCELOT_NUTGET_API_KEY
Original file line number Diff line number Diff line change
1
+ # this script build the ocelot docker file
2
+ version=0.0.5
3
+ docker build --platform linux/amd64 -t mijitt0m/ocelot-build -f Dockerfile.base .
4
+ echo $DOCKER_PASS | docker login -u $DOCKER_USER --password-stdin
5
+ docker tag mijitt0m/ocelot-build mijitt0m/ocelot-build:$version
6
+ docker push mijitt0m/ocelot-build:latest
7
+ docker push mijitt0m/ocelot-build:$version
You can’t perform that action at this time.
0 commit comments