+semver: breaking upgrade base build image to net5.0

This commit is contained in:
TomPallister 2020-11-20 10:51:49 +00:00
parent 708b575857
commit 7254d4d1fb
2 changed files with 16 additions and 15 deletions

View File

@ -1,9 +1,9 @@
# this is the dockerfile that create the ocelot build container # this is the dockerfile that create the ocelot build container
# build with the docker-build.sh file in this folder # build with the docker-build.sh file in this folder
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-bionic AS build FROM mcr.microsoft.com/dotnet/sdk:5.0-focal AS build
RUN apt install gnupg ca-certificates RUN apt update
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF RUN apt install -y dirmngr gnupg apt-transport-https ca-certificates software-properties-common
RUN echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | tee /etc/apt/sources.list.d/mono-official-stable.list RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
RUN apt update RUN apt-add-repository 'deb https://download.mono-project.com/repo/ubuntu stable-focal main'
RUN apt-get -y install mono-devel RUN apt install -y mono-devel

View File

@ -1,6 +1,7 @@
# this script build the ocelot docker file # this script build the ocelot docker file
docker build -t mijitt0m/ocelot-build -f Dockerfile.base . version=0.0.2
echo $DOCKER_PASS | docker login -u $DOCKER_USER --password-stdin docker build -t mijitt0m/ocelot-build -f Dockerfile.base .
docker tag mijitt0m/ocelot-build mijitt0m/ocelot-build:0.0.1 echo $DOCKER_PASS | docker login -u $DOCKER_USER --password-stdin
docker push mijitt0m/ocelot-build:latest docker tag mijitt0m/ocelot-build mijitt0m/ocelot-build:$version
docker push mijitt0m/ocelot-build:0.0.1 docker push mijitt0m/ocelot-build:latest
docker push mijitt0m/ocelot-build:$version