kopia lustrzana https://github.com/carlos-algms/composer-and-node-ci
Remove env from interpolations
rodzic
0aa7cca69b
commit
0c7a895aa5
|
@ -6,10 +6,6 @@ on:
|
||||||
- main
|
- main
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
|
||||||
LATEST: php8
|
|
||||||
IMAGE: carlosalgms/composer-and-node-ci
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_latest:
|
build_latest:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -17,11 +13,11 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
tag: [php8, php7.1]
|
tag: [php8, php7.1]
|
||||||
image: [carlosalgms/composer-and-node-ci]
|
image: [carlosalgms/composer-and-node-ci]
|
||||||
|
latest: [php8]
|
||||||
include:
|
include:
|
||||||
- tag: php8
|
- tag: php8
|
||||||
|
|
||||||
buildArgs: ""
|
buildArgs: ""
|
||||||
# tags: ${{ matrix.image }}:latest,${{ matrix.image }}:${{ matrix.tag }}
|
|
||||||
|
|
||||||
- tag: php7.1
|
- tag: php7.1
|
||||||
buildArgs: |
|
buildArgs: |
|
||||||
|
@ -30,7 +26,7 @@ jobs:
|
||||||
COMPOSER_VERSION=2.2.18
|
COMPOSER_VERSION=2.2.18
|
||||||
env:
|
env:
|
||||||
TAGGED_IMAGE: ${{ matrix.image }}:${{ matrix.tag }}
|
TAGGED_IMAGE: ${{ matrix.image }}:${{ matrix.tag }}
|
||||||
TAGS: ${{ matrix.tag == env.LATEST && format('{0}:latest,{0}:{1}', matrix.image, matrix.tag) || format('{0}:{1}', matrix.image, matrix.tag) }}
|
TAGS: ${{ matrix.tag == matrix.latest && format('{0}:latest,', matrix.image) || '' }}${{ matrix.image }}:${{ matrix.tag }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue