Skip to content

Commit cce7c2d

Browse files
committed
publish images for 8.0
1 parent fe68b03 commit cce7c2d

File tree

2 files changed

+94
-0
lines changed

2 files changed

+94
-0
lines changed

.github/workflows/latest.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Publish Latest Docker Image
2+
3+
on:
4+
push:
5+
branches:
6+
- '8.0.x'
7+
8+
env:
9+
PHP_VERSION: '8.0'
10+
DOCKER_HUB_REPO: 'rushlowdev/php-cli'
11+
12+
jobs:
13+
push_to_registry:
14+
name: Push Latest PHP Images to Docker Hub
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Check out the repo
18+
uses: actions/checkout@v2
19+
20+
- name: Log in to Docker Hub
21+
uses: docker/login-action@v1
22+
with:
23+
username: ${{ secrets.DOCKER_HUB_USER }}
24+
password: ${{ secrets.DOCKER_HUB_TOKEN }}
25+
26+
- name: Extract metadata (tags, labels) for Docker
27+
id: meta
28+
uses: docker/metadata-action@v3
29+
with:
30+
images: rushlowdev/php-cli
31+
32+
- name: Build and push CLI image
33+
uses: docker/build-push-action@v2
34+
with:
35+
context: ./cli
36+
push: true
37+
tags: ${{ env.DOCKER_HUB_REPO }}:latest-${{ env.PHP_VERSION }}-cli
38+
labels: ${{ steps.meta.outputs.labels }}
39+
40+
- name: Build and push FPM image
41+
uses: docker/build-push-action@v2
42+
with:
43+
context: ./fpm
44+
push: true
45+
tags: ${{ env.DOCKER_HUB_REPO }}:latest-${{ env.PHP_VERSION }}-fpm
46+
labels: ${{ steps.meta.outputs.labels }}

.github/workflows/release.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Publish Released Docker Image
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
branches:
8+
- '8.0.x'
9+
10+
env:
11+
PHP_VERSION: '8.0'
12+
DOCKER_HUB_REPO: 'rushlowdev/php-cli'
13+
14+
jobs:
15+
push_to_registry:
16+
name: Push Released PHP Images to Docker Hub
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Check out the repo
20+
uses: actions/checkout@v2
21+
22+
- name: Log in to Docker Hub
23+
uses: docker/login-action@v1
24+
with:
25+
username: ${{ secrets.DOCKER_HUB_USER }}
26+
password: ${{ secrets.DOCKER_HUB_TOKEN }}
27+
28+
- name: Extract metadata (tags, labels) for Docker
29+
id: meta
30+
uses: docker/metadata-action@v3
31+
with:
32+
images: rushlowdev/php-cli
33+
34+
- name: Build and push CLI image
35+
uses: docker/build-push-action@v2
36+
with:
37+
context: ./cli
38+
push: true
39+
tags: ${{ env.DOCKER_HUB_REPO }}:${{ env.PHP_VERSION }}-cli
40+
labels: ${{ steps.meta.outputs.labels }}
41+
42+
- name: Build and push FPM image
43+
uses: docker/build-push-action@v2
44+
with:
45+
context: ./fpm
46+
push: true
47+
tags: ${{ env.DOCKER_HUB_REPO }}:${{ env.PHP_VERSION }}-fpm
48+
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)