Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Change kuksa-client version handling #618

Merged
merged 1 commit into from
Jul 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions .github/workflows/kuksa-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
# Fetch everything to get tags working as expected
fetch-depth: 0
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
Expand All @@ -48,15 +51,15 @@ jobs:
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
# only needed for runners without buildx setup, will be slow

# only needed for runners without buildx setup, will be slow
#- name: Set up QEMU
# uses: docker/setup-qemu-action@v2

#- name: Set up Docker Buildx
# id: buildx
# uses: docker/setup-buildx-action@v2

- name: Log in to the Container registry
if: needs.checkrights.outputs.have_secrets == 'true'
uses: docker/#-action@v2
Expand Down Expand Up @@ -94,7 +97,7 @@ jobs:
push: false
tags: "ttl.sh/kuksa.val/kuksa-client-${{github.sha}}"
labels: ${{ steps.meta.outputs.labels }}


kuksa-client-test:
runs-on: ubuntu-latest
Expand All @@ -118,4 +121,3 @@ jobs:
cd kuksa-client
pip install --upgrade build
python -m build

7 changes: 3 additions & 4 deletions kuksa-client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@

FROM python:3.10-alpine as build
RUN apk update && apk add git alpine-sdk linux-headers
COPY kuksa-client /kuksa.val/kuksa-client/
COPY kuksa_certificates /kuksa.val/kuksa_certificates/
COPY proto/kuksa/val/v1/*.proto /kuksa.val/kuksa-client/kuksa/val/v1/
WORKDIR /kuksa.val/kuksa-client
RUN pip install --upgrade pip build
# We must copy the whole repository otherwise version lookup by tag would not work
COPY . /kuksa.val/
WORKDIR /kuksa.val/kuksa-client
RUN rm -rf dist
RUN python3 -m build
RUN mkdir /kuksa-client
Expand Down
6 changes: 3 additions & 3 deletions kuksa-client/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[build-system]
requires = [
"grpcio-tools>=1.46.0",
"grpcio-tools>=1.54.2",
"setuptools>=42",
"setuptools-git-versioning",
"wheel",
]
build-backend = "setuptools.build_meta"

[tool.setuptools-git-versioning]
starting_version = "0.1.6"
tag_filter = "[0-9]+.[0-9]+.[0-9]+"
# Starting version is just a dummy value that never shall be used in CI
starting_version = "0.0.0"

[tool.pylint.design]
max-args = 8
Expand Down