Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/reusable-php-docker-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,15 @@ jobs:

IMAGE_NAME=ghcr.io/$REPOSITORY_OWNER/$PACKAGE_NAME:${{ steps.tags.outputs.tagPrefix }}$(git rev-parse --short HEAD)-$(date +%s)
IMAGE_NAME_LATEST=ghcr.io/$REPOSITORY_OWNER/$PACKAGE_NAME:${{ steps.tags.outputs.tagSuffix }}
IMAGE_VERSION=${{ steps.tags.outputs.tagSuffix }}

echo "📦 ${IMAGE_NAME} → ${IMAGE_NAME_LATEST}"

docker buildx build . \
--file "${package}" \
--tag "${IMAGE_NAME}" \
--tag "${IMAGE_NAME_LATEST}" \
--build-arg APP_BUILD_VERSION="${IMAGE_NAME}" \
--build-arg APP_BUILD_VERSION="${IMAGE_VERSION}" \
--cache-from type=gha,scope="${PACKAGE_NAME}" \
--cache-to type=gha,scope="${PACKAGE_NAME}" \
--push \
Expand All @@ -120,14 +121,15 @@ jobs:

IMAGE_NAME=ghcr.io/$REPOSITORY_OWNER/$package:${{ steps.tags.outputs.tagPrefix }}$(git rev-parse --short HEAD)-$(date +%s)
IMAGE_NAME_LATEST=ghcr.io/$REPOSITORY_OWNER/$package:${{ steps.tags.outputs.tagSuffix }}
IMAGE_VERSION=${{ steps.tags.outputs.tagSuffix }}

echo "📦 ${IMAGE_NAME} → ${IMAGE_NAME_LATEST}"

docker buildx build . \
--file "$SEARCH_PATH/${package}/Dockerfile" \
--tag "${IMAGE_NAME}" \
--tag "${IMAGE_NAME_LATEST}" \
--build-arg APP_BUILD_VERSION="${IMAGE_NAME}" \
--build-arg APP_BUILD_VERSION="${IMAGE_VERSION}" \
--cache-from type=gha,scope="${package}" \
--cache-to type=gha,scope="${package}" \
--push \
Expand Down
Loading