Skip to content

Commit e34d9d5

Browse files
committed
Automatically build and push Docker image on new release
1 parent ac6cdcc commit e34d9d5

File tree

4 files changed

+30
-4
lines changed

4 files changed

+30
-4
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: build-docker-image-parallel-processes
2+
description: Build Docker image parallel-processes
3+
4+
inputs:
5+
DOCKER_HUB_TOKEN:
6+
description: 'hub.docker.com token'
7+
required: true
8+
9+
runs:
10+
using: composite
11+
steps:
12+
-
13+
shell: bash
14+
run: echo "${{ inputs.DOCKER_HUB_TOKEN }}" | docker login --username steevanb --password-stdin
15+
-
16+
shell: bash
17+
run: bin/parallel-processes/docker --push

.github/workflows/build-docker-image-parallel-processes.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v2
12-
- run: echo "${{ secrets.DOCKER_HUB_TOKEN }}" | docker login --username steevanb --password-stdin
13-
- run: bin/parallel-processes/docker --push
12+
-
13+
uses: ./.github/actions/build-docker-image-parallel-processes
14+
with:
15+
DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,8 @@ jobs:
4545
with:
4646
tag_name: ${{ github.event.inputs.version }}
4747
body: "[Changelog](changelog.md)"
48+
-
49+
name: Build and push Docker image parallel-processes-${{ github.event.inputs.version }}
50+
uses: ./.github/actions/build-docker-image-parallel-processes
51+
with:
52+
DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }}

changelog.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
### master
22

3-
- Automatically build and push Docker image `steevanb/php-parallel-processes:ci`
3+
- Create GitHub Actions to build and push Docker image `steevanb/php-parallel-processes:ci`
4+
- Create GitHub Actions to build and push Docker image `steevanb/php-parallel-processes:parallel-processes-x.y.z` and automatically call it on new release
5+
- Create GitHub Actions to build and push Docker image `steevanb/php-parallel-processes:release`
46

57
### [0.2.1](../../compare/0.2.0...0.2.1) - 2022-01-08
68

7-
- Fix `bin/release/code-lines` who find code lines in `.idea` (directory of PhpStorm)
9+
- Fix `bin/release/code-lines` who find code lines in `.idea` (directory of PHPStorm)
810
- Fix output who was not fully rewritten sometimes
911

1012
### [0.2.0](../../compare/0.1.0...0.2.0) - 2021-09-11

0 commit comments

Comments
 (0)