trim ci jobs for now

This commit is contained in:
Armando Diaz
2025-12-05 17:27:56 -06:00
parent 9c4be0f05f
commit f978e1bda9

View File

@@ -2,7 +2,7 @@ stages:
- test - test
- build - build
- publish - publish
- deploy # - deploy
variables: variables:
# Container registry settings # Container registry settings
@@ -22,7 +22,7 @@ variables:
# Run Python tests # Run Python tests
test: test:
stage: test stage: test
image: python:3.12-slim image: deps.global.bsf.tools/docker/python:3.12-slim
before_script: before_script:
- pip install -r backend/requirements.txt - pip install -r backend/requirements.txt
- pip install pytest pytest-asyncio httpx - pip install pytest pytest-asyncio httpx
@@ -43,10 +43,7 @@ build:
--tag ${IMAGE_NAME}:${CI_COMMIT_SHORT_SHA} \ --tag ${IMAGE_NAME}:${CI_COMMIT_SHORT_SHA} \
--label org.opencontainers.image.source=${CI_PROJECT_URL} \ --label org.opencontainers.image.source=${CI_PROJECT_URL} \
--label org.opencontainers.image.revision=${CI_COMMIT_SHA} \ --label org.opencontainers.image.revision=${CI_COMMIT_SHA} \
--label org.opencontainers.image.created=$(date -u +%Y-%m-%dT%H:%M:%SZ) \ --label org.opencontainers.image.created=$(date -u +%Y-%m-%dT%H:%M:%SZ) .
--layers \
--cache-from ${IMAGE_NAME}:latest \
.
rules: rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event" - if: $CI_PIPELINE_SOURCE == "merge_request_event"
@@ -70,25 +67,6 @@ publish:
rules: rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
# Build and push tagged releases
publish-release:
stage: publish
extends: .buildah-base
script:
- |
buildah build \
--tag ${IMAGE_NAME}:${CI_COMMIT_TAG} \
--tag ${IMAGE_NAME}:latest \
--label org.opencontainers.image.source=${CI_PROJECT_URL} \
--label org.opencontainers.image.revision=${CI_COMMIT_SHA} \
--label org.opencontainers.image.version=${CI_COMMIT_TAG} \
--label org.opencontainers.image.created=$(date -u +%Y-%m-%dT%H:%M:%SZ) \
--layers \
.
- buildah push ${IMAGE_NAME}:${CI_COMMIT_TAG}
- buildah push ${IMAGE_NAME}:latest
rules:
- if: $CI_COMMIT_TAG =~ /^v\d+\.\d+\.\d+$/
# deploy_helm_charts: # deploy_helm_charts:
# stage: deploy # stage: deploy