trim ci jobs for now

This commit is contained in:
Armando Diaz
2025-12-05 17:27:56 -06:00
parent 6e81ece3b2
commit 9fb54970e8

View File

@@ -2,7 +2,7 @@ stages:
- test
- build
- publish
- deploy
# - deploy
variables:
# Container registry settings
@@ -22,7 +22,7 @@ variables:
# Run Python tests
test:
stage: test
image: python:3.12-slim
image: deps.global.bsf.tools/docker/python:3.12-slim
before_script:
- pip install -r backend/requirements.txt
- pip install pytest pytest-asyncio httpx
@@ -43,10 +43,7 @@ build:
--tag ${IMAGE_NAME}:${CI_COMMIT_SHORT_SHA} \
--label org.opencontainers.image.source=${CI_PROJECT_URL} \
--label org.opencontainers.image.revision=${CI_COMMIT_SHA} \
--label org.opencontainers.image.created=$(date -u +%Y-%m-%dT%H:%M:%SZ) \
--layers \
--cache-from ${IMAGE_NAME}:latest \
.
--label org.opencontainers.image.created=$(date -u +%Y-%m-%dT%H:%M:%SZ) .
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
@@ -70,25 +67,6 @@ publish:
rules:
- 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:
# stage: deploy