Skip to content

Commit 42df16c

Browse files
committed
Merge branch '7.3' into 7.4-mssql
2 parents ee40e45 + f7611f1 commit 42df16c

1 file changed

Lines changed: 12 additions & 13 deletions

File tree

.github/workflows/build.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,42 @@
11
name: Build image and push to Docker Hub
22

3-
on: [push, workflow_dispatch, repository_dispatch]
4-
5-
env:
6-
BRANCH: '7.4-mssql'
3+
on:
4+
push:
5+
workflow_dispatch:
76

87
jobs:
98
docker:
109
runs-on: ubuntu-latest
1110
steps:
1211
-
1312
name: Checkout
14-
uses: actions/checkout@v2
13+
uses: actions/checkout@v4
1514
with:
16-
ref: ${{ env.BRANCH }}
15+
ref: ${{ github.ref_name }}
1716
-
1817
name: Set up QEMU
19-
uses: docker/setup-qemu-action@v1
18+
uses: docker/setup-qemu-action@v3
2019
-
2120
name: Set up Docker Buildx
22-
uses: docker/setup-buildx-action@v1
21+
uses: docker/setup-buildx-action@v3
2322
-
2423
name: Login to Docker Hub
25-
uses: docker/login-action@v1
24+
uses: docker/login-action@v3
2625
with:
2726
username: ${{ secrets.DOCKERHUB_USERNAME }}
2827
password: ${{ secrets.DOCKERHUB_TOKEN }}
2928
-
3029
name: Build latest
31-
if: ${{ env.BRANCH == '8.3' }}
32-
uses: docker/build-push-action@v2
30+
if: ${{ github.ref_name == '8.3' }}
31+
uses: docker/build-push-action@v6
3332
with:
3433
platforms: ${{ secrets.DOCKER_PLATFORMS }}
3534
push: true
3635
tags: rshop/php-apache:latest
3736
-
3837
name: Build and push
39-
uses: docker/build-push-action@v2
38+
uses: docker/build-push-action@v6
4039
with:
4140
platforms: ${{ secrets.DOCKER_PLATFORMS }}
4241
push: true
43-
tags: rshop/php-apache:${{ env.BRANCH }}
42+
tags: rshop/php-apache:${{ github.ref_name }}

0 commit comments

Comments
 (0)