Skip to content

Commit

Permalink
Add more Docker Image Metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
flavioheleno committed Apr 1, 2022
1 parent c19a6b2 commit 4ca9dc6
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ jobs:
with:
push: false
load: true
build-args:
"VERSION=${{ steps.prepare-build.outputs.environment }}-${{ steps.prepare-build.outputs.short }}"
tags: package-health/nginx:${{ steps.prepare-build.outputs.environment }}-${{ steps.prepare-build.outputs.short }}
file: ./docker/nginx.Dockerfile
context: .
Expand All @@ -54,6 +56,8 @@ jobs:
with:
push: false
load: true
build-args:
"VERSION=${{ steps.prepare-build.outputs.environment }}-${{ steps.prepare-build.outputs.short }}"
tags: package-health/php-fpm:${{ steps.prepare-build.outputs.environment }}-${{ steps.prepare-build.outputs.short }}
file: ./docker/php.Dockerfile
target: fpm
Expand All @@ -66,6 +70,8 @@ jobs:
with:
push: false
load: true
build-args:
"VERSION=${{ steps.prepare-build.outputs.environment }}-${{ steps.prepare-build.outputs.short }}"
tags: package-health/php-cli:${{ steps.prepare-build.outputs.environment }}-${{ steps.prepare-build.outputs.short }}
file: ./docker/php.Dockerfile
target: cli
Expand Down
8 changes: 6 additions & 2 deletions docker/nginx.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,13 @@ HEALTHCHECK --interval=1m30s --timeout=10s --retries=3 --start-period=40s CMD cu
#============================================
# Metadata
#============================================
LABEL org.opencontainers.image.authors="[email protected]" \
ARG VERSION=latest
LABEL maintainer="Flavio Heleno <[email protected]>" \
org.opencontainers.image.authors="[email protected]" \
org.opencontainers.image.title="PHP-Package-Health-NGINX" \
org.opencontainers.image.url="https://github.com/package-health/php" \
org.opencontainers.image.vendor="Package Health"
org.opencontainers.image.vendor="Package Health" \
org.opencontainers.image.version="${VERSION}" \
org.opencontainers.image.base.name="ghcr.io/package-health/pph-nginx:${VERSION}"

WORKDIR /usr/share/nginx/html
16 changes: 12 additions & 4 deletions docker/php.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,14 @@ WORKDIR /var/www/html/bin
#============================================
# Metadata
#============================================
LABEL org.opencontainers.image.authors="[email protected]" \
ARG VERSION=latest
LABEL maintainer="Flavio Heleno <[email protected]>" \
org.opencontainers.image.authors="[email protected]" \
org.opencontainers.image.title="PHP-Package-Health: PHP-CLI" \
org.opencontainers.image.url="https://github.com/package-health/php" \
org.opencontainers.image.vendor="Package Health"
org.opencontainers.image.vendor="Package Health" \
org.opencontainers.image.version="${VERSION}" \
org.opencontainers.image.base.name="ghcr.io/package-health/pph-php-cli:${VERSION}"

ENTRYPOINT ["/usr/bin/dumb-init", "--"]
CMD ["php"]
Expand Down Expand Up @@ -212,10 +216,14 @@ HEALTHCHECK --interval=1m30s --timeout=10s --retries=3 --start-period=40s CMD ph
#============================================
# Metadata
#============================================
LABEL org.opencontainers.image.authors="[email protected]" \
ARG VERSION=latest
LABEL maintainer="Flavio Heleno <[email protected]>" \
org.opencontainers.image.authors="[email protected]" \
org.opencontainers.image.title="PHP-Package-Health: PHP-FPM" \
org.opencontainers.image.url="https://github.com/package-health/php" \
org.opencontainers.image.vendor="Package Health"
org.opencontainers.image.vendor="Package Health" \
org.opencontainers.image.version="${VERSION}" \
org.opencontainers.image.base.name="ghcr.io/package-health/pph-php-fpm:${VERSION}"

ENTRYPOINT ["/usr/bin/dumb-init", "--"]
CMD ["php-fpm"]

0 comments on commit 4ca9dc6

Please sign in to comment.