Compare commits

...
2 Commits
2 changed files with 4 additions and 10 deletions
+2 -6
View File
@@ -64,11 +64,6 @@ jobs:
if: needs.check-images.outputs.should_build == 'true'
runs-on: ubuntu-latest
steps:
- name: Build skipped
if: steps.build_decision.outputs.should_build == 'false'
run: |
echo "Build skipped: ${{ steps.build_decision.outputs.reason }}"
exit 1
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
@@ -97,6 +92,8 @@ jobs:
tags: |
type=schedule,pattern={{date 'YYYYMMDD'}}
type=raw,value=latest
labels: |
base-image.digest=${{ needs.check-images.outputs.base_image_digest }}
- name: Build and push Docker image
id: build-publish
uses: docker/build-push-action@v5
@@ -110,7 +107,6 @@ jobs:
build-args: |
BASE_IMAGE_DIGEST=${{ needs.check-images.outputs.base_image_digest }}
- name: Update deployment info
if: steps.build-publish.outputs.success == 'true'
run: |
echo "Docker image built and pushed successfully at $(date)"
echo "Image tags:"
+2 -4
View File
@@ -1,9 +1,7 @@
FROM ghcr.io/mlflow/mlflow:latest
ARG BASE_IMAGE_DIGEST=unknown
# Set a label with the base image digest for traceability
LABEL base-image.digest="${BASE_IMAGE_DIGEST}" \
build-date="$(date -u +'%Y-%m-%dT%H:%M:%SZ')" \
# Set a labels for traceability
LABEL build-date="$(date -u +'%Y-%m-%dT%H:%M:%SZ')" \
maintainer="Brian Jensen"
# Use --no-cache-dir to avoid storing pip cache in the image