Skip to content

Commit

Permalink
[5.x] Correct tag prefix for the development branch (#99)
Browse files Browse the repository at this point in the history
* [5.x] Correct tag prefix for the development branch

* [5.x] Remove docker prune
  • Loading branch information
shinsenter authored Aug 8, 2024
1 parent 8f37666 commit fdf4f09
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 6 deletions.
1 change: 0 additions & 1 deletion .github/workflows/template-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ jobs:
if: ${{ !env.SKIP_BUILD }}
name: Cleanup before building ${{ env.BUILD_TAG }}
run: |
docker system prune -a --volumes -f
sudo swapoff -a || true
sudo rm -f /mnt/swapfile || true
free -h
Expand Down
4 changes: 3 additions & 1 deletion src/php/with-apache.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ ARG BUILDKIT_SBOM_SCAN_STAGE=true
# FROM ./base-php AS php

ARG BUILD_FROM_IMAGE=${BUILD_FROM_IMAGE:-shinsenter/php}
ARG BUILD_TAG_PREFIX=${BUILD_TAG_PREFIX:-}

ARG PHP_VERSION=${PHP_VERSION:-8.3}
ARG PHP_VARIANT=${PHP_VARIANT:-fpm-alpine}

FROM ${BUILD_FROM_IMAGE}:${PHP_VERSION}-${PHP_VARIANT}
FROM ${BUILD_FROM_IMAGE}:${BUILD_TAG_PREFIX}${PHP_VERSION}-${PHP_VARIANT}
ONBUILD RUN if has-cmd autorun; then autorun /etc/onbuild.d/; fi

################################################################################
Expand Down
4 changes: 3 additions & 1 deletion src/php/with-f8p.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ ARG BUILDKIT_SBOM_SCAN_STAGE=true
# FROM ./base-php AS php

ARG BUILD_FROM_IMAGE=${BUILD_FROM_IMAGE:-shinsenter/php}
ARG BUILD_TAG_PREFIX=${BUILD_TAG_PREFIX:-}

ARG PHP_VERSION=${PHP_VERSION:-8.3}
ARG PHP_VARIANT=${PHP_VARIANT:-zts-alpine}
ARG BUILD_SOURCE_IMAGE=${BUILD_SOURCE_IMAGE:-dunglas/frankenphp:1-php${PHP_VERSION}}

FROM ${BUILD_SOURCE_IMAGE} AS frankenphp
FROM ${BUILD_FROM_IMAGE}:${PHP_VERSION}-${PHP_VARIANT}
FROM ${BUILD_FROM_IMAGE}:${BUILD_TAG_PREFIX}${PHP_VERSION}-${PHP_VARIANT}
ONBUILD RUN if has-cmd autorun; then autorun /etc/onbuild.d/; fi

################################################################################
Expand Down
4 changes: 3 additions & 1 deletion src/php/with-nginx.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ ARG BUILDKIT_SBOM_SCAN_STAGE=true
# FROM ./base-php AS php

ARG BUILD_FROM_IMAGE=${BUILD_FROM_IMAGE:-shinsenter/php}
ARG BUILD_TAG_PREFIX=${BUILD_TAG_PREFIX:-}

ARG PHP_VERSION=${PHP_VERSION:-8.3}
ARG PHP_VARIANT=${PHP_VARIANT:-fpm-alpine}

FROM ${BUILD_FROM_IMAGE}:${PHP_VERSION}-${PHP_VARIANT}
FROM ${BUILD_FROM_IMAGE}:${BUILD_TAG_PREFIX}${PHP_VERSION}-${PHP_VARIANT}
ONBUILD RUN if has-cmd autorun; then autorun /etc/onbuild.d/; fi

################################################################################
Expand Down
4 changes: 3 additions & 1 deletion src/php/with-roadrunner.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ ARG BUILDKIT_SBOM_SCAN_STAGE=true
# FROM ./base-php AS php

ARG BUILD_FROM_IMAGE=${BUILD_FROM_IMAGE:-shinsenter/php}
ARG BUILD_TAG_PREFIX=${BUILD_TAG_PREFIX:-}

ARG PHP_VERSION=${PHP_VERSION:-8.3}
ARG PHP_VARIANT=${PHP_VARIANT:-cli-alpine}

FROM ${BUILD_FROM_IMAGE}:${PHP_VERSION}-${PHP_VARIANT}
FROM ${BUILD_FROM_IMAGE}:${BUILD_TAG_PREFIX}${PHP_VERSION}-${PHP_VARIANT}
ONBUILD RUN if has-cmd autorun; then autorun /etc/onbuild.d/; fi

################################################################################
Expand Down
4 changes: 3 additions & 1 deletion src/php/with-unit.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ ARG BUILDKIT_SBOM_SCAN_STAGE=true
# FROM ./base-php AS php

ARG BUILD_FROM_IMAGE=${BUILD_FROM_IMAGE:-shinsenter/php}
ARG BUILD_TAG_PREFIX=${BUILD_TAG_PREFIX:-}

ARG PHP_VERSION=${PHP_VERSION:-8.3}
ARG PHP_VARIANT=${PHP_VARIANT:-zts-alpine}

FROM ${BUILD_FROM_IMAGE}:${PHP_VERSION}-${PHP_VARIANT}
FROM ${BUILD_FROM_IMAGE}:${BUILD_TAG_PREFIX}${PHP_VERSION}-${PHP_VARIANT}
ONBUILD RUN if has-cmd autorun; then autorun /etc/onbuild.d/; fi

################################################################################
Expand Down

0 comments on commit fdf4f09

Please sign in to comment.