Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Validate images build without pushing on PR #19

Merged
merged 2 commits into from
Mar 22, 2022
Merged
Show file tree
Hide file tree
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
11 changes: 9 additions & 2 deletions .github/workflows/php74.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
branches:
- master
paths:
- .github/workflows/php74.yml
- '7.4-dev/**'
pull_request:
paths:
- .github/workflows/php74.yml
- '7.4-dev/**'
schedule:
- cron: '0 0 1,15 * *'
Expand All @@ -29,6 +34,7 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
if: github.event_name != 'pull_request'
- run: |
echo "tag_generic_version=phpdaily/php:7.4" >> $GITHUB_ENV
echo "tag_short_platform=phpdaily/php:7.4-alpine" >> $GITHUB_ENV
Expand All @@ -40,7 +46,7 @@ jobs:
with:
context: 7.4-dev/${{ matrix.alpine }}/${{ matrix.sapi }}
no-cache: true
push: true
push: ${{ github.event_name != 'pull_request' }}
tags: |
phpdaily/php:7.4-${{ matrix.sapi }}-${{ matrix.alpine }}
${{ env.tag_generic_version }}
Expand All @@ -66,14 +72,15 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
if: github.event_name != 'pull_request'
- run: echo "tag_generic_platform=phpdaily/php:7.4-${{ matrix.ubuntu }}" >> $GITHUB_ENV
if: ${{ matrix.sapi == 'cli' }}
- name: Build
uses: docker/build-push-action@v2
with:
context: 7.4-dev/${{ matrix.ubuntu }}/${{ matrix.sapi }}
no-cache: true
push: true
push: ${{ github.event_name != 'pull_request' }}
tags: |
phpdaily/php:7.4-${{ matrix.sapi }}-${{ matrix.ubuntu }}
${{ env.tag_generic_platform }}
11 changes: 9 additions & 2 deletions .github/workflows/php80.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
branches:
- master
paths:
- .github/workflows/php80.yml
- '8.0-dev/**'
pull_request:
paths:
- .github/workflows/php80.yml
- '8.0-dev/**'
schedule:
- cron: '0 0 * * *'
Expand All @@ -29,6 +34,7 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
if: github.event_name != 'pull_request'
- run: |
echo "tag_generic_version=phpdaily/php:8.0" >> $GITHUB_ENV
echo "tag_short_platform=phpdaily/php:8.0-alpine" >> $GITHUB_ENV
Expand All @@ -40,7 +46,7 @@ jobs:
with:
context: 8.0-dev/${{ matrix.alpine }}/${{ matrix.sapi }}
no-cache: true
push: true
push: ${{ github.event_name != 'pull_request' }}
tags: |
phpdaily/php:8.0-${{ matrix.sapi }}-${{ matrix.alpine }}
${{ env.tag_generic_version }}
Expand All @@ -66,14 +72,15 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
if: github.event_name != 'pull_request'
- run: echo "tag_generic_platform=phpdaily/php:8.0-${{ matrix.ubuntu }}" >> $GITHUB_ENV
if: ${{ matrix.sapi == 'cli' }}
- name: Build
uses: docker/build-push-action@v2
with:
context: 8.0-dev/${{ matrix.ubuntu }}/${{ matrix.sapi }}
no-cache: true
push: true
push: ${{ github.event_name != 'pull_request' }}
tags: |
phpdaily/php:8.0-${{ matrix.sapi }}-${{ matrix.ubuntu }}
${{ env.tag_generic_platform }}
11 changes: 9 additions & 2 deletions .github/workflows/php81.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
branches:
- master
paths:
- .github/workflows/php81.yml
- '8.1-dev/**'
pull_request:
paths:
- .github/workflows/php81.yml
- '8.1-dev/**'
schedule:
- cron: '0 0 * * *'
Expand All @@ -29,6 +34,7 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
if: github.event_name != 'pull_request'
- run: |
echo "tag_latest=phpdaily/php:latest" >> $GITHUB_ENV
echo "tag_generic_version=phpdaily/php:8.1" >> $GITHUB_ENV
Expand All @@ -41,7 +47,7 @@ jobs:
with:
context: 8.1-dev/${{ matrix.alpine }}/${{ matrix.sapi }}
no-cache: true
push: true
push: ${{ github.event_name != 'pull_request' }}
tags: |
phpdaily/php:8.1-${{ matrix.sapi }}-${{ matrix.alpine }}
${{ env.tag_latest }}
Expand All @@ -68,14 +74,15 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
if: github.event_name != 'pull_request'
- run: echo "tag_generic_platform=phpdaily/php:8.1-${{ matrix.ubuntu }}" >> $GITHUB_ENV
if: ${{ matrix.sapi == 'cli' }}
- name: Build
uses: docker/build-push-action@v2
with:
context: 8.1-dev/${{ matrix.ubuntu }}/${{ matrix.sapi }}
no-cache: true
push: true
push: ${{ github.event_name != 'pull_request' }}
tags: |
phpdaily/php:8.1-${{ matrix.sapi }}-${{ matrix.ubuntu }}
${{ env.tag_generic_platform }}
11 changes: 9 additions & 2 deletions .github/workflows/php82.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
branches:
- master
paths:
- .github/workflows/php82.yml
- '8.2-dev/**'
pull_request:
paths:
- .github/workflows/php82.yml
- '8.2-dev/**'
schedule:
- cron: '0 0 * * *'
Expand All @@ -29,6 +34,7 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
if: github.event_name != 'pull_request'
- run: |
echo "tag_generic_version=phpdaily/php:8.2" >> $GITHUB_ENV
echo "tag_short_platform=phpdaily/php:8.2-alpine" >> $GITHUB_ENV
Expand All @@ -40,7 +46,7 @@ jobs:
with:
context: 8.2-dev/${{ matrix.alpine }}/${{ matrix.sapi }}
no-cache: true
push: true
push: ${{ github.event_name != 'pull_request' }}
tags: |
phpdaily/php:8.2-${{ matrix.sapi }}-${{ matrix.alpine }}
${{ env.tag_generic_version }}
Expand All @@ -66,14 +72,15 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
if: github.event_name != 'pull_request'
- run: echo "tag_generic_platform=phpdaily/php:8.2-${{ matrix.ubuntu }}" >> $GITHUB_ENV
if: ${{ matrix.sapi == 'cli' }}
- name: Build
uses: docker/build-push-action@v2
with:
context: 8.2-dev/${{ matrix.ubuntu }}/${{ matrix.sapi }}
no-cache: true
push: true
push: ${{ github.event_name != 'pull_request' }}
tags: |
phpdaily/php:8.2-${{ matrix.sapi }}-${{ matrix.ubuntu }}
${{ env.tag_generic_platform }}