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+ name : Publish Docker Images
2+
3+ on :
4+ push :
5+ branches :
6+ - develop
7+ - latest
8+ tags :
9+ - ' v*'
10+
11+ jobs :
12+ publish :
13+ name : Build & Publish v1
14+ runs-on : ubuntu-latest
15+ if : github.ref_name == 'latest' || startsWith(github.ref_name, 'v1')
16+ steps :
17+ - name : Checkout code
18+ uses : actions/checkout@v4
19+ with :
20+ fetch-depth : 1
21+
22+ - name : Set up Docker Buildx
23+ uses : docker/setup-buildx-action@v2
24+
25+ - name : Log in to Docker Hub
26+ uses : docker/login-action@v2
27+ with :
28+ username : ${{ secrets.DOCKER_USERNAME }}
29+ password : ${{ secrets.DOCKER_PASSWORD }}
30+
31+ - name : Build and push Docker images
32+ run : |
33+ docker buildx build --push --tag ${{ secrets.DOCKER_USERNAME }}/onescript:${{ github.ref_name }} -f install/builders/base-image/Dockerfile_v1 .
34+
Original file line number Diff line number Diff line change @@ -66,3 +66,4 @@ tests/tests.xml
6666src /oscript /Properties /launchSettings \. json
6767
6868* .DotSettings
69+ .secrets
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"
You can’t perform that action at this time.
0 commit comments