php-fpm: try storing lane in env
This commit is contained in:
8
.github/workflows/php-fpm.yml
vendored
8
.github/workflows/php-fpm.yml
vendored
@@ -97,6 +97,8 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix: ${{ fromJson(needs.lanes.outputs.matrix) }}
|
matrix: ${{ fromJson(needs.lanes.outputs.matrix) }}
|
||||||
|
env:
|
||||||
|
LANE: ${{ matrix.lane }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -117,14 +119,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
images: gitea.auvem.com/auvem/wordpress-docker/php-fpm
|
images: gitea.auvem.com/auvem/wordpress-docker/php-fpm
|
||||||
tags: |
|
tags: |
|
||||||
type=raw,value=${{ matrix.lane }}-stable
|
type=raw,value=${{ env.LANE }}-stable
|
||||||
type=raw,value=${{ matrix.lane }}-${{ github.sha }}
|
type=raw,value=${{ env.LANE }}-${{ github.sha }}
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ./php-fpm/${{ matrix.lane }}/Dockerfile
|
file: ./php-fpm/${{ env.LANE }}/Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|||||||
Reference in New Issue
Block a user