Skip to content

Commit 43d9130

Browse files
committed
add automated image building
1 parent 7d3f0b4 commit 43d9130

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/publish.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build and publish images
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
docker:
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
matrix:
14+
include:
15+
- tag: "8.2"
16+
php: "8.2"
17+
- tag: "8.1"
18+
php: "8.1"
19+
- tag: "8.0"
20+
php: "8.0"
21+
22+
steps:
23+
- uses: actions/checkout@v3
24+
25+
- name: Login to DockerHub
26+
uses: docker/login-action@v2
27+
with:
28+
username: ${{ secrets.DOCKERHUB_USERNAME }}
29+
password: ${{ secrets.DOCKERHUB_TOKEN }}
30+
31+
- name: Build and push
32+
uses: docker/build-push-action@v6
33+
with:
34+
push: true
35+
context: ${{ matrix.php }}
36+
tags: ocreaper/php-nvm:${{ matrix.tag }}

0 commit comments

Comments
 (0)