File tree Expand file tree Collapse file tree
install/builders/base-image Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ pipeline {
2+ agent {
3+ label 'linux'
4+ }
5+
6+ environment {
7+ DOCKER_USERNAME = "evilbeaver"
8+ }
9+
10+ stages {
11+ stage('Build v1') {
12+ when {
13+ anyOf {
14+ branch 'release/latest'
15+ expression {
16+ return env.TAG_NAME && env.TAG_NAME.startsWith('v1.')
17+ }
18+ }
19+ }
20+ steps {
21+ script {
22+ def dockerTag = env.TAG_NAME ? env.TAG_NAME : 'latest'
23+ def imageName = "${env.DOCKER_USERNAME}/onescript:${dockerTag}"
24+
25+ docker.build(
26+ imageName,
27+ '--load -f install/builders/base-image/Dockerfile_v1 .'
28+ ).push()
29+ }
30+ }
31+ }
32+
33+ stage('Build v2') {
34+ when {
35+ anyOf {
36+ branch 'develop'
37+ expression {
38+ return env.TAG_NAME && env.TAG_NAME.startsWith('v2.')
39+ }
40+ }
41+ }
42+ steps {
43+ script {
44+ def dockerTag = env.TAG_NAME ? env.TAG_NAME : 'dev'
45+ def imageName = "${env.DOCKER_USERNAME}/onescript:${dockerTag}"
46+
47+ docker.build(
48+ imageName,
49+ '--load -f install/builders/base-image/Dockerfile_v2 .'
50+ ).push()
51+ }
52+ }
53+ }
54+ }
55+ }
Original file line number Diff line number Diff line change @@ -8,4 +8,7 @@ LABEL MAINTAINER="EvilBeaver <ovsiankin.aa@gmail.com>"
88ARG VERSION=stable
99
1010RUN curl -L https://github.com/oscript-library/ovm/releases/latest/download/ovm.exe > ovm.exe \
11- && mono ovm.exe use --install $VERSION
11+ && mono ovm.exe use --install $VERSION
12+
13+ ENV OSCRIPTBIN=/root/.local/share/ovm/current/bin
14+ ENV PATH="$OSCRIPTBIN:$PATH"
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ ARG VERSION="dev"
1111RUN mono /var/ovm/ovm.exe install --fdd ${VERSION}
1212
1313# Основной образ
14- FROM mcr.microsoft.com/dotnet/aspnet:6 .0-jammy
14+ FROM mcr.microsoft.com/dotnet/aspnet:8 .0-jammy
1515
1616RUN apt-get update \
1717 && apt-get install -y locales \
You can’t perform that action at this time.
0 commit comments