diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 4e9660f..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,37 +0,0 @@ -stages: - - build_kubernetes_dev - - build_kubernetes - -.base: - image: - name: gcr.io/kaniko-project/executor:debug - entrypoint: [""] - cache: {} - tags: - - "opencode-high" - before_script: - - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json - -build_sha_dev: - extends: .base - stage: build_kubernetes_dev - only: - - dev - script: - - /kaniko/executor --build-arg "profile=dev" --context "${CI_PROJECT_DIR}" --dockerfile "${CI_PROJECT_DIR}/Dockerfile" --destination "${CI_REGISTRY_IMAGE}:dev_${CI_COMMIT_SHORT_SHA}" - -build_sha_prod: - extends: .base - stage: build_kubernetes - only: - - main - script: - - /kaniko/executor --build-arg "profile=prod" --context "${CI_PROJECT_DIR}" --dockerfile "${CI_PROJECT_DIR}/Dockerfile" --destination "${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHORT_SHA}" - -build_latest_prod: - extends: .base - stage: build_kubernetes - only: - - main - script: - - /kaniko/executor --build-arg "profile=prod" --context "${CI_PROJECT_DIR}" --dockerfile "${CI_PROJECT_DIR}/Dockerfile" --destination "${CI_REGISTRY_IMAGE}:latest" diff --git a/docker/runDocker.sh b/docker/runDocker.sh deleted file mode 100644 index 8019f71..0000000 --- a/docker/runDocker.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash - -# Function to display usage instructions -usage() { - echo "Usage: $0 -n -i -o " - exit 1 -} - -# Parse command-line arguments -while getopts ":n:i:o:" opt; do - case $opt in - n) - CONTAINER_NAME=$OPTARG - ;; - i) - INPUT_LOCATION=$OPTARG - ;; - o) - OUTPUT_LOCATION=$OPTARG - ;; - \?) - echo "Invalid option: -$OPTARG" >&2 - usage - ;; - :) - echo "Option -$OPTARG requires an argument." >&2 - usage - ;; - esac -done - -# Check if all required parameters are provided -if [ -z "$CONTAINER_NAME" ] || [ -z "$INPUT_LOCATION" ] || [ -z "$OUTPUT_LOCATION" ]; then - usage -fi - -# Run the Docker container with the provided name and mount the input and output locations -docker run --name "$CONTAINER_NAME" -v "$INPUT_LOCATION":/input -v "$OUTPUT_LOCATION":/output "$CONTAINER_NAME" diff --git a/qodana.yaml b/qodana.yaml deleted file mode 100644 index ebc500e..0000000 --- a/qodana.yaml +++ /dev/null @@ -1,31 +0,0 @@ -#-------------------------------------------------------------------------------# -# Qodana analysis is configured by qodana.yaml file # -# https://www.jetbrains.com/help/qodana/qodana-yaml.html # -#-------------------------------------------------------------------------------# -version: "1.0" - -#Specify inspection profile for code analysis -profile: - name: qodana.starter - -#Enable inspections -#include: -# - name: - -#Disable inspections -#exclude: -# - name: -# paths: -# - - -projectJDK: 21 #(Applied in CI/CD pipeline) - -#Execute shell command before Qodana execution (Applied in CI/CD pipeline) -#bootstrap: sh ./prepare-qodana.sh - -#Install IDE plugins before Qodana execution (Applied in CI/CD pipeline) -#plugins: -# - id: #(plugin id can be found at https://plugins.jetbrains.com) - -#Specify Qodana linter for analysis (Applied in CI/CD pipeline) -linter: jetbrains/qodana-jvm:latest