ci(docker): use full path of venv

This commit is contained in:
fiftin 2024-05-27 23:00:47 +02:00
parent afd2f59e4a
commit fe3cc6c031
No known key found for this signature in database
GPG Key ID: 044381366A5D4731
3 changed files with 4 additions and 8 deletions

View File

@ -85,9 +85,7 @@ jobs:
org.opencontainers.image.vendor=SemaphoreUI org.opencontainers.image.vendor=SemaphoreUI
maintainer=Semaphore UI <support@semui.co> maintainer=Semaphore UI <support@semui.co>
tags: | tags: |
type=semver,pattern={{version}} type=raw,value=${{ github.ref_name }}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
flavor: | flavor: |
latest=true latest=true
@ -113,9 +111,7 @@ jobs:
org.opencontainers.image.vendor=SemaphoreUI org.opencontainers.image.vendor=SemaphoreUI
maintainer=Semaphore UI <support@semui.co> maintainer=Semaphore UI <support@semui.co>
tags: | tags: |
type=semver,pattern={{version}} type=raw,value=${{ github.ref_name }}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
flavor: | flavor: |
latest=true latest=true

View File

@ -6,7 +6,7 @@ export SEMAPHORE_CONFIG_PATH="${SEMAPHORE_CONFIG_PATH:-/etc/semaphore}"
export SEMAPHORE_TMP_PATH="${SEMAPHORE_TMP_PATH:-/tmp/semaphore}" export SEMAPHORE_TMP_PATH="${SEMAPHORE_TMP_PATH:-/tmp/semaphore}"
export ANSIBLE_CONFIG="${ANSIBLE_CONFIG:-${SEMAPHORE_TMP_PATH}/ansible.cfg}" export ANSIBLE_CONFIG="${ANSIBLE_CONFIG:-${SEMAPHORE_TMP_PATH}/ansible.cfg}"
source ./venv/bin/activate source /home/semaphore/venv/bin/activate
if test -f "${SEMAPHORE_CONFIG_PATH}/packages.txt"; then if test -f "${SEMAPHORE_CONFIG_PATH}/packages.txt"; then
echoerr "Installing additional system dependencies" echoerr "Installing additional system dependencies"

View File

@ -181,7 +181,7 @@ EOF
fi fi
fi fi
source ./venv/bin/activate source /home/semaphore/venv/bin/activate
if test -f "${SEMAPHORE_CONFIG_PATH}/packages.txt"; then if test -f "${SEMAPHORE_CONFIG_PATH}/packages.txt"; then
echoerr "Installing additional system dependencies" echoerr "Installing additional system dependencies"