Skip to content

Commit e404d13

Browse files
committed
Сборка образов v1 на GA
1 parent bd9b7e4 commit e404d13

3 files changed

Lines changed: 39 additions & 1 deletion

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,4 @@ tests/tests.xml
6666
src/oscript/Properties/launchSettings\.json
6767

6868
*.DotSettings
69+
.secrets

install/builders/base-image/Dockerfile_v1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@ LABEL MAINTAINER="EvilBeaver <ovsiankin.aa@gmail.com>"
88
ARG VERSION=stable
99

1010
RUN 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"

0 commit comments

Comments
 (0)