Compare commits

...

12 Commits

2 changed files with 44 additions and 12 deletions

View File

@ -140,11 +140,43 @@ jobs:
${{ vars.PACKAGES_REGISTRY_URL }}/${{ gitea.repository }}
tags: type=semver,pattern=v{{version}},value=${{ needs.create_release.outputs.release_name }}
- name: Build and push images
uses: docker/build-push-action@v5
with:
context: .
push: true
annotations: ${{ steps.meta.outputs.annotations }}
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.meta.outputs.tags }}
- name: Print metadata
run: |
printf "Annotations:\n${{ steps.meta.outputs.annotations }}"
echo ""
printf "Labels:\n${{ steps.meta.outputs.labels }}"
echo ""
printf "Tags:\n${{ steps.meta.outputs.tags }}"
# - name: Build images
# uses: docker/build-push-action@v5
# with:
# context: .
# push: false
# annotations: ${{ steps.meta.outputs.annotations }}
# labels: ${{ steps.meta.outputs.labels }}
# tags: ${{ steps.meta.outputs.tags }}
- name: Build images
run: |
bldcmd="docker buildx build ."
strtags="${{ steps.meta.outputs.tags }}"
strlabels="${{ steps.meta.outputs.labels }}"
strannotations="${{ steps.meta.outputs.annotations }}"
readarray -t tags <<<"$strtags"
readarray -t labels <<<"$strlabels"
readarray -t annotations <<<"$strannotations"
for element in "${tags[@]}"; do bldcmd="$bldcmd --tag \"$element\""; done
for element in "${labels[@]}"; do bldcmd="$bldcmd --label \"$element\""; done
for element in "${annotations[@]}"; do bldcmd="$bldcmd --annotation \"$element\""; done
bldcmd="$bldcmd ${{ gitea.workspace }}"
echo "$bldcmd"
echo ""
sh -c "$bldcmd"
- name: Push images
run: |
strtags="${{ steps.meta.outputs.tags }}"
readarray -t lines <<<"$strtags"
for element in "${lines[@]}"; do docker push "$element"; done
unset strtags lines

8
poetry.lock generated
View File

@ -636,17 +636,17 @@ tests = ["coverage[toml] (==5.0.4)", "pytest (>=6.0.0,<7.0.0)"]
[[package]]
name = "pylint"
version = "3.3.2"
version = "3.3.3"
description = "python code static checker"
optional = false
python-versions = ">=3.9.0"
files = [
{file = "pylint-3.3.2-py3-none-any.whl", hash = "sha256:77f068c287d49b8683cd7c6e624243c74f92890f767f106ffa1ddf3c0a54cb7a"},
{file = "pylint-3.3.2.tar.gz", hash = "sha256:9ec054ec992cd05ad30a6df1676229739a73f8feeabf3912c995d17601052b01"},
{file = "pylint-3.3.3-py3-none-any.whl", hash = "sha256:26e271a2bc8bce0fc23833805a9076dd9b4d5194e2a02164942cb3cdc37b4183"},
{file = "pylint-3.3.3.tar.gz", hash = "sha256:07c607523b17e6d16e2ae0d7ef59602e332caa762af64203c24b41c27139f36a"},
]
[package.dependencies]
astroid = ">=3.3.5,<=3.4.0-dev0"
astroid = ">=3.3.8,<=3.4.0-dev0"
colorama = {version = ">=0.4.5", markers = "sys_platform == \"win32\""}
dill = [
{version = ">=0.3.7", markers = "python_version >= \"3.12\""},