mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-20 01:22:50 +08:00
use new base image for build & release
This commit is contained in:
parent
69bd9a8548
commit
c07e6ee41f
@ -4,13 +4,13 @@ orbs:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
docker:
|
docker:
|
||||||
- image: mcr.microsoft.com/dotnet/sdk:6.0-alpine
|
- image: mijitt0m/ocelot-build:0.0.5
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run: dotnet tool restore && dotnet cake
|
- run: dotnet tool restore && dotnet cake
|
||||||
release:
|
release:
|
||||||
docker:
|
docker:
|
||||||
- image: mcr.microsoft.com/dotnet/sdk:6.0-alpine
|
- image: mijitt0m/ocelot-build:0.0.5
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run: dotnet tool restore && dotnet cake --target=Release
|
- run: dotnet tool restore && dotnet cake --target=Release
|
||||||
|
10
docker/Dockerfile.base
Normal file
10
docker/Dockerfile.base
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# syntax=docker/dockerfile:1
|
||||||
|
FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine
|
||||||
|
|
||||||
|
RUN apk add bash icu-libs krb5-libs libgcc libintl libssl1.1 libstdc++ zlib
|
||||||
|
|
||||||
|
RUN curl -L --output ./dotnet-install.sh https://dot.net/v1/dotnet-install.sh
|
||||||
|
|
||||||
|
RUN chmod u+x ./dotnet-install.sh
|
||||||
|
|
||||||
|
RUN ./dotnet-install.sh -c 5.0
|
@ -2,7 +2,7 @@
|
|||||||
# call from ocelot repo root with
|
# call from ocelot repo root with
|
||||||
# docker build --platform linux/arm64 --build-arg OCELOT_COVERALLS_TOKEN=$OCELOT_COVERALLS_TOKEN -f ./docker/Dockerfile.build .
|
# docker build --platform linux/arm64 --build-arg OCELOT_COVERALLS_TOKEN=$OCELOT_COVERALLS_TOKEN -f ./docker/Dockerfile.build .
|
||||||
# docker build --platform linux/amd64 --build-arg OCELOT_COVERALLS_TOKEN=$OCELOT_COVERALLS_TOKEN -f ./docker/Dockerfile.build .
|
# docker build --platform linux/amd64 --build-arg OCELOT_COVERALLS_TOKEN=$OCELOT_COVERALLS_TOKEN -f ./docker/Dockerfile.build .
|
||||||
FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine AS build-env
|
FROM mijitt0m/ocelot-build:0.0.5
|
||||||
|
|
||||||
ARG OCELOT_COVERALLS_TOKEN
|
ARG OCELOT_COVERALLS_TOKEN
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# call from ocelot repo root with
|
# call from ocelot repo root with
|
||||||
# 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 .
|
# 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 .
|
||||||
# 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 .
|
# 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 .
|
||||||
FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine AS build-env
|
FROM mijitt0m/ocelot-build:0.0.5
|
||||||
|
|
||||||
ARG OCELOT_COVERALLS_TOKEN
|
ARG OCELOT_COVERALLS_TOKEN
|
||||||
ARG OCELOT_NUTGET_API_KEY
|
ARG OCELOT_NUTGET_API_KEY
|
||||||
|
7
docker/build.sh
Executable file
7
docker/build.sh
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
# this script build the ocelot docker file
|
||||||
|
version=0.0.5
|
||||||
|
docker build --platform linux/amd64 -t mijitt0m/ocelot-build -f Dockerfile.base .
|
||||||
|
echo $DOCKER_PASS | docker login -u $DOCKER_USER --password-stdin
|
||||||
|
docker tag mijitt0m/ocelot-build mijitt0m/ocelot-build:$version
|
||||||
|
docker push mijitt0m/ocelot-build:latest
|
||||||
|
docker push mijitt0m/ocelot-build:$version
|
Loading…
x
Reference in New Issue
Block a user