Skip to content

Commit

Permalink
Fix CI action
Browse files Browse the repository at this point in the history
Fix Python version badge in README.md
Optimized imports in operator.py and server.py
  • Loading branch information
meffmadd committed Jul 8, 2024
1 parent de9b354 commit 9dcc6e3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
with:
dir_names: true
files: |
**/*
*
- id: outputStep
run: echo "::set-output name=changeDirs::${{ steps.changeDirsStep.outputs.all_changed_files }}"
Expand All @@ -39,11 +40,9 @@ jobs:
strategy:
matrix:
include:
- image: your-docker-registry/app1
dockerfile: operator/Dockerfile
- image: ghcr.io/tu-wien-datalab/config-server-operator
directory: operator
- image: user/app2
dockerfile: server/Dockerfile
- image: ghcr.io/tu-wien-datalab/config-server
directory: server
steps:
- name: Docker metadata
Expand All @@ -59,6 +58,9 @@ jobs:
type=ref,event=tag
type=sha
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

Expand All @@ -68,17 +70,17 @@ jobs:
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v6
if: startsWith(needs.init.outputs.changeDirs, matrix.directory)
with:
context: .
file: ${{ matrix.dockerfile }}
context: ${{ matrix.directory }}
file: ./${{ matrix.directory }}/Dockerfile
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name == 'pull_request' }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# config-server-operator

![Python Version from PEP 621 TOML](https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fraw.githubusercontent.com%2FTU-Wien-dataLAB%2Fconfig-server-operator%2Fmain%2Fpyproject.toml%3Ftoken%3DGHSAT0AAAAAACGUZZXQLY7KSD64CM5CM5FOZULV5QA)
![Python Version from PEP 621 TOML](https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fraw.githubusercontent.com%2FTU-Wien-dataLAB%2Fconfig-server-operator%2Fmain%2Fpyproject.toml)


This operator provides CRDs to create key/value pairs (`KeyValuePair`). The operator combines these configuration objects into a single `ConfigMap` and deploys a REST API that can be used to access the individual values with the corresponding keys.
Expand Down
1 change: 0 additions & 1 deletion operator/operator.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import json
import logging
from typing import Optional

import kopf
import kubernetes
Expand Down
1 change: 1 addition & 0 deletions server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import os
import sys
from pathlib import Path

import tornado

log = logging.getLogger(__name__)
Expand Down

0 comments on commit 9dcc6e3

Please sign in to comment.