mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-02-13 03:13:12 -05:00
feat: Add Docker metadata to published images (#7052)
This commit is contained in:
12
.github/workflows/publish.yml
vendored
12
.github/workflows/publish.yml
vendored
@@ -37,6 +37,17 @@ jobs:
|
|||||||
|
|
||||||
- uses: depot/setup-action@v1
|
- uses: depot/setup-action@v1
|
||||||
|
|
||||||
|
- name: Generate Docker metadata
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata-action@v5
|
||||||
|
with:
|
||||||
|
images: |
|
||||||
|
hkotel/mealie
|
||||||
|
ghcr.io/${{ github.repository }}
|
||||||
|
# Overwrite the image.version label with our tag
|
||||||
|
labels: |
|
||||||
|
org.opencontainers.image.version=${{ inputs.tag }}
|
||||||
|
|
||||||
- name: Retrieve Python package
|
- name: Retrieve Python package
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
@@ -57,5 +68,6 @@ jobs:
|
|||||||
hkotel/mealie:${{ inputs.tag }}
|
hkotel/mealie:${{ inputs.tag }}
|
||||||
ghcr.io/${{ github.repository }}:${{ inputs.tag }}
|
ghcr.io/${{ github.repository }}:${{ inputs.tag }}
|
||||||
${{ inputs.tags }}
|
${{ inputs.tags }}
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
build-args: |
|
build-args: |
|
||||||
COMMIT=${{ github.sha }}
|
COMMIT=${{ github.sha }}
|
||||||
|
|||||||
@@ -111,7 +111,6 @@ RUN . $VENV_PATH/bin/activate \
|
|||||||
# Production Image
|
# Production Image
|
||||||
###############################################
|
###############################################
|
||||||
FROM python-base AS production
|
FROM python-base AS production
|
||||||
LABEL org.opencontainers.image.source="https://github.com/mealie-recipes/mealie"
|
|
||||||
ENV PRODUCTION=true
|
ENV PRODUCTION=true
|
||||||
ENV TESTING=false
|
ENV TESTING=false
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user