Skip to content

Commit

Permalink
fixed publish actions
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Piskun <[email protected]>
  • Loading branch information
bigcat88 committed Jul 4, 2024
1 parent 4883859 commit 27ba563
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 24 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/publish-docker-cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ jobs:
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
Expand All @@ -36,8 +32,11 @@ jobs:
id: extract_version
run: |
VERSION=$(xmlstarlet sel -t -v "//image-tag" appinfo/info.xml)
echo "VERSION=${VERSION}" >> $GITHUB_ENV
echo "Extracted version: ${{ VERSION }}"
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Log version
run: |
echo "Extracted version: ${{ env.VERSION }}"
- name: Build container image
uses: docker/build-push-action@v5
Expand All @@ -46,7 +45,6 @@ jobs:
context: .
platforms: linux/amd64
file: Dockerfile
tags: ghcr.io/cloud-py-api/visionatrix-nc-cuda:${{ env.VERSION }}
load: true
tags: ghcr.io/cloud-py-api/visionatrix-cuda:${{ env.VERSION }}
build-args: |
BUILD_TYPE=cuda
14 changes: 6 additions & 8 deletions .github/workflows/publish-docker-rocm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ jobs:
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
Expand All @@ -36,8 +32,11 @@ jobs:
id: extract_version
run: |
VERSION=$(xmlstarlet sel -t -v "//image-tag" appinfo/info.xml)
echo "VERSION=${VERSION}" >> $GITHUB_ENV
echo "Extracted version: ${{ VERSION }}"
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Log version
run: |
echo "Extracted version: ${{ env.VERSION }}"
- name: Build container image
uses: docker/build-push-action@v5
Expand All @@ -46,7 +45,6 @@ jobs:
context: .
platforms: linux/amd64
file: Dockerfile
tags: ghcr.io/cloud-py-api/visionatrix-nc-rocm:${{ env.VERSION }}
load: true
tags: ghcr.io/cloud-py-api/visionatrix-rocm:${{ env.VERSION }}
build-args: |
BUILD_TYPE=cuda
16 changes: 8 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ FROM python:3.10-slim
ARG BUILD_TYPE

# Visionatrix enviroment variables
ENV VIX_HOST "127.0.0.1"
ENV VIX_PORT 8288
ENV USER_BACKENDS "nextcloud"
ENV FLOWS_DIR "/nc_app_vix_data/vix_flows"
ENV MODELS_DIR "/nc_app_vix_data/vix_models"
ENV TASKS_FILES_DIR "/nc_app_vix_data/vix_tasks_files"
ENV BACKEND_DIR "/Visionatrix/vix_backend"
ENV VIX_SERVER_FULL_MODELS "1"
ENV VIX_HOST="127.0.0.1"
ENV VIX_PORT=8288
ENV USER_BACKENDS="nextcloud"
ENV FLOWS_DIR="/nc_app_vix_data/vix_flows"
ENV MODELS_DIR="/nc_app_vix_data/vix_models"
ENV TASKS_FILES_DIR="/nc_app_vix_data/vix_tasks_files"
ENV BACKEND_DIR="/Visionatrix/vix_backend"
ENV VIX_SERVER_FULL_MODELS="1"

RUN apt-get update && apt-get install -y git \
python3-dev python3-setuptools netcat-traditional \
Expand Down

0 comments on commit 27ba563

Please sign in to comment.