8 Commits

Author SHA1 Message Date
bdeb7135ff reset
All checks were successful
Check Deleted Workflows / check-deleted-workflows (pull_request) Successful in 1m8s
2026-06-18 06:29:01 +00:00
Richard Mrasek
867cc8c522 adjusted pipeline to clean up a bit 2026-06-18 08:22:33 +02:00
db85eb865f added k_anonymity_job_s3
All checks were successful
Check Deleted Workflows / check-deleted-workflows (pull_request) Successful in 1m31s
2026-06-17 08:19:35 +00:00
1dd776a410 added example removed two jobs
Some checks failed
Check Deleted Workflows / check-deleted-workflows (pull_request) Failing after 1m37s
2026-06-17 08:16:31 +00:00
cfdeef41cb add price_band 2026-06-17 08:15:40 +00:00
7e743c1157 Merge branch 'main' into develop
All checks were successful
Check Deleted Workflows / check-deleted-workflows (pull_request) Successful in 1m5s
2026-06-17 06:01:57 +00:00
5a7f568ba6 Merge pull request 'develop' (#10) from develop into main
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m17s
Reviewed-on: #10
Reviewed-by: Jessica Roberts <j.r@email.com>
2026-06-16 12:51:20 +00:00
f5c7236767 Merge pull request 'develop' (#8) from develop into main
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m22s
Reviewed-on: #8
Reviewed-by: Jessica Roberts <j.r@email.com>
2026-06-15 13:52:09 +00:00
3 changed files with 45 additions and 37 deletions

View File

@@ -11,6 +11,9 @@ on:
- ready_for_review - ready_for_review
workflow_dispatch: workflow_dispatch:
env:
BASE_DOMAIN: dataprovider01.sandbox-cat-dat.simpl-europe.eu
jobs: jobs:
check-deleted-workflows: check-deleted-workflows:
runs-on: orchestration-platform runs-on: orchestration-platform
@@ -19,6 +22,9 @@ jobs:
defaults: defaults:
run: run:
shell: bash shell: bash
env:
REPO_DIR: repo
REPO_CLONE_URL: https://gitea.${{ env.BASE_DOMAIN }}/dataprovider01/template-code-location.git
steps: steps:
- name: Install git - name: Install git
run: | run: |
@@ -27,8 +33,6 @@ jobs:
- name: Checkout repository - name: Checkout repository
run: | run: |
REPO_DIR="repo"
REPO_CLONE_URL="https://gitea.dataprovider01.sandbox-cat-dat.simpl-europe.eu/dataprovider01/template-code-location.git"
CLONE_USER="${{ secrets.REGISTRY_USERNAME }}" CLONE_USER="${{ secrets.REGISTRY_USERNAME }}"
CLONE_PASS="${{ secrets.REGISTRY_PASSWORD }}" CLONE_PASS="${{ secrets.REGISTRY_PASSWORD }}"
@@ -55,12 +59,12 @@ jobs:
- name: Install project dependencies - name: Install project dependencies
run: | run: |
cd repo cd "${REPO_DIR}"
uv sync --frozen --no-dev --no-install-package torch uv sync --frozen --no-dev --no-install-package torch
- name: Compute deleted workflows/jobs against main - name: Compute deleted workflows/jobs against main
run: | run: |
cd repo cd "${REPO_DIR}"
PATH="$PWD/.venv/bin:$PATH" \ PATH="$PWD/.venv/bin:$PATH" \
BASE_REF="${GITHUB_BASE_REF:-main}" \ BASE_REF="${GITHUB_BASE_REF:-main}" \
HEAD_REF="${GITHUB_HEAD_REF:-HEAD}" \ HEAD_REF="${GITHUB_HEAD_REF:-HEAD}" \
@@ -71,7 +75,7 @@ jobs:
- name: Compute active workflows list - name: Compute active workflows list
run: | run: |
cd repo cd "${REPO_DIR}"
PATH="$PWD/.venv/bin:$PATH" \ PATH="$PWD/.venv/bin:$PATH" \
ONLY_ACTIVE="true" \ ONLY_ACTIVE="true" \
REGISTRY_USERNAME="${{ secrets.REGISTRY_USERNAME }}" \ REGISTRY_USERNAME="${{ secrets.REGISTRY_USERNAME }}" \
@@ -82,7 +86,7 @@ jobs:
- name: Fail only on overlap with active workflows - name: Fail only on overlap with active workflows
run: | run: |
cd repo cd "${REPO_DIR}"
echo "--- Deleted workflows ---" echo "--- Deleted workflows ---"
cat deleted_workflows.txt 2>/dev/null || echo "(none)" cat deleted_workflows.txt 2>/dev/null || echo "(none)"

View File

@@ -6,6 +6,9 @@ on:
- main - main
workflow_dispatch: workflow_dispatch:
env:
BASE_DOMAIN: dataprovider01.sandbox-cat-dat.simpl-europe.eu
jobs: jobs:
build-and-push: build-and-push:
runs-on: orchestration-platform runs-on: orchestration-platform
@@ -13,16 +16,13 @@ jobs:
run: run:
shell: sh shell: sh
env: env:
REGISTRY: gitea.dataprovider01.sandbox-cat-dat.simpl-europe.eu REGISTRY: gitea.${{ env.BASE_DOMAIN }}
IMAGE_REPO: gitea.dataprovider01.sandbox-cat-dat.simpl-europe.eu/dataprovider01/template-code-location IMAGE_REPO: gitea.${{ env.BASE_DOMAIN }}/dataprovider01/template-code-location
K8S_NAMESPACE: dataprovider01 REPO_DIR: repo
HELM_RELEASE: dataprovider01-dataprovider-orchestration-platform REPO_CLONE_URL: https://gitea.${{ env.BASE_DOMAIN }}/dataprovider01/template-code-location.git
DAGSTER_CHART_VERSION: 0.2.0
steps: steps:
- name: Checkout repository (shell) - name: Checkout repository (shell)
run: | run: |
REPO_DIR="repo"
REPO_CLONE_URL="https://gitea.dataprovider01.sandbox-cat-dat.simpl-europe.eu/dataprovider01/template-code-location.git"
CLONE_USER="${{ secrets.REGISTRY_USERNAME }}" CLONE_USER="${{ secrets.REGISTRY_USERNAME }}"
CLONE_PASS="${{ secrets.REGISTRY_PASSWORD }}" CLONE_PASS="${{ secrets.REGISTRY_PASSWORD }}"
REF_NAME="${GITHUB_REF_NAME}" REF_NAME="${GITHUB_REF_NAME}"
@@ -63,7 +63,7 @@ jobs:
run: | run: |
COMMIT_SHA="${GITHUB_SHA:-$GITEA_SHA}" COMMIT_SHA="${GITHUB_SHA:-$GITEA_SHA}"
SHORT_SHA="$(echo "${COMMIT_SHA}" | cut -c1-12)" SHORT_SHA="$(echo "${COMMIT_SHA}" | cut -c1-12)"
cd repo cd "${REPO_DIR}"
docker build \ docker build \
-t "${IMAGE_REPO}:latest" \ -t "${IMAGE_REPO}:latest" \
-t "${IMAGE_REPO}:${SHORT_SHA}" \ -t "${IMAGE_REPO}:${SHORT_SHA}" \
@@ -83,30 +83,30 @@ jobs:
docker push "${IMAGE_REPO}:latest" docker push "${IMAGE_REPO}:latest"
docker push "${IMAGE_REPO}:${SHORT_SHA}" docker push "${IMAGE_REPO}:${SHORT_SHA}"
- name: Install kubectl # The automated update of the deployment requires a technical user with
run: | # their kube config in the secrets. See the user manual.
apk add --no-cache kubectl # - name: Install kubectl
# run: |
# apk add --no-cache kubectl
- name: Setup kubectl # - name: Setup kubectl
run: | # run: |
mkdir -p "${HOME}/.kube" # mkdir -p "${KUBE_CONFIG_DIR}"
echo "${{ secrets.KUBE_CONFIG_B64 }}" | base64 -d > "${HOME}/.kube/config" # echo "${{ secrets.KUBE_CONFIG_B64 }}" | base64 -d > "${KUBE_CONFIG_FILE}"
chmod 600 "${HOME}/.kube/config" # chmod 600 "${KUBE_CONFIG_FILE}"
- name: Update Dagster user deployment image # - name: Update Dagster user deployment image
run: | # run: |
COMMIT_SHA="${GITHUB_SHA:-$GITEA_SHA}" # COMMIT_SHA="${GITHUB_SHA:-$GITEA_SHA}"
SHORT_SHA="$(echo "${COMMIT_SHA}" | cut -c1-12)" # SHORT_SHA="$(echo "${COMMIT_SHA}" | cut -c1-12)"
DEPLOYMENT_NAME="dataprovider01-dataprovider-orchestration-platform-dagster-user-template-code-location" # # Keep both the code server image and DAGSTER_CURRENT_IMAGE in sync.
# kubectl patch deployment "${DEPLOYMENT_NAME}" \
# -n "${K8S_NAMESPACE}" \
# --type='strategic' \
# -p="{\"spec\":{\"template\":{\"spec\":{\"containers\":[{\"name\":\"dagster-user-deployments\",\"image\":\"${IMAGE_REPO}:${SHORT_SHA}\",\"env\":[{\"name\":\"DAGSTER_CURRENT_IMAGE\",\"value\":\"${IMAGE_REPO}:${SHORT_SHA}\"}]}]}}}}"
# Keep both the code server image and DAGSTER_CURRENT_IMAGE in sync. # # Wait for rollout to complete
kubectl patch deployment "${DEPLOYMENT_NAME}" \ # kubectl rollout status deployment/"${DEPLOYMENT_NAME}" \
-n "${K8S_NAMESPACE}" \ # -n "${K8S_NAMESPACE}" \
--type='strategic' \ # --timeout=5m
-p="{\"spec\":{\"template\":{\"spec\":{\"containers\":[{\"name\":\"dagster-user-deployments\",\"image\":\"${IMAGE_REPO}:${SHORT_SHA}\",\"env\":[{\"name\":\"DAGSTER_CURRENT_IMAGE\",\"value\":\"${IMAGE_REPO}:${SHORT_SHA}\"}]}]}}}}"
# Wait for rollout to complete
kubectl rollout status deployment/"${DEPLOYMENT_NAME}" \
-n "${K8S_NAMESPACE}" \
--timeout=5m

View File

@@ -33,4 +33,8 @@ def transform_example_dataset(df: pd.DataFrame) -> pd.DataFrame:
df["total_price"] = df["quantity"] * df["unit_price"] df["total_price"] = df["quantity"] * df["unit_price"]
df["price_band"] = df["total_price"].apply(
lambda value: "high" if value >= 25 else "standard"
)
return df return df