diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 3c9cb1f6fe..1a114efb30 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -60,7 +60,11 @@ jobs: echo "COMPOSE_FILE=docker-compose.yml:docker-compose.${DB}.yml:docker-compose.dev.yml" >> $GITHUB_ENV echo "IMAGE_NAME=${OWNER,,}/ec-cube2-php" >> $GITHUB_ENV if [ $EVENT_NAME = "pull_request" ]; then - echo "TAG=${PHP}-apache-${BASE_REF}" >> $GITHUB_ENV + if [ -n $DOCKER_METADATA_OUTPUT_VERSION ]; then + echo "TAG=${DOCKER_METADATA_OUTPUT_VERSION}" >> $GITHUB_ENV + else + echo "TAG=${PHP}-apache-${BASE_REF}" >> $GITHUB_ENV + fi else echo "TAG=${PHP}-apache-${REF_NAME}" >> $GITHUB_ENV fi @@ -158,7 +162,11 @@ jobs: echo "COMPOSE_FILE=docker-compose.yml:docker-compose.${DB}.yml:docker-compose.dev.yml" >> $GITHUB_ENV echo "IMAGE_NAME=${OWNER,,}/ec-cube2-php" >> $GITHUB_ENV if [ $EVENT_NAME = "pull_request" ]; then - echo "TAG=${PHP}-apache-${BASE_REF}" >> $GITHUB_ENV + if [ -n $DOCKER_METADATA_OUTPUT_VERSION ]; then + echo "TAG=${DOCKER_METADATA_OUTPUT_VERSION}" >> $GITHUB_ENV + else + echo "TAG=${PHP}-apache-${BASE_REF}" >> $GITHUB_ENV + fi else echo "TAG=${PHP}-apache-${REF_NAME}" >> $GITHUB_ENV fi diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index 96d47fdb71..0858b04b40 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -39,7 +39,11 @@ jobs: echo "COMPOSE_FILE=docker-compose.yml:docker-compose.pgsql.yml:docker-compose.dev.yml" >> $GITHUB_ENV echo "IMAGE_NAME=${OWNER,,}/ec-cube2-php" >> $GITHUB_ENV if [ $EVENT_NAME = "pull_request" ]; then - echo "TAG=8.3-apache-${BASE_REF}" >> $GITHUB_ENV + if [ -n $DOCKER_METADATA_OUTPUT_VERSION ]; then + echo "TAG=${DOCKER_METADATA_OUTPUT_VERSION}" >> $GITHUB_ENV + else + echo "TAG=8.3-apache-${BASE_REF}" >> $GITHUB_ENV + fi else echo "TAG=8.3-apache-${REF_NAME}" >> $GITHUB_ENV fi diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index e41c0520e9..89b0a2a465 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -53,7 +53,11 @@ jobs: echo "COMPOSE_FILE=docker-compose.yml:docker-compose.${DB}.yml:docker-compose.dev.yml" >> $GITHUB_ENV echo "IMAGE_NAME=${OWNER,,}/ec-cube2-php" >> $GITHUB_ENV if [ $EVENT_NAME = "pull_request" ]; then - echo "TAG=${PHP}-apache-${BASE_REF}" >> $GITHUB_ENV + if [ -n $DOCKER_METADATA_OUTPUT_VERSION ]; then + echo "TAG=${DOCKER_METADATA_OUTPUT_VERSION}" >> $GITHUB_ENV + else + echo "TAG=${PHP}-apache-${BASE_REF}" >> $GITHUB_ENV + fi else echo "TAG=${PHP}-apache-${REF_NAME}" >> $GITHUB_ENV fi