File tree Expand file tree Collapse file tree
actions/build-docker-image-parallel-processes Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ name: build-docker-image-parallel-processes
22description : Build Docker image parallel-processes
33
44inputs :
5+ version :
6+ description : ' Version to build'
7+ required : true
58 DOCKER_HUB_TOKEN :
69 description : ' hub.docker.com token'
710 required : true
1417 run : echo "${{ inputs.DOCKER_HUB_TOKEN }}" | docker login --username steevanb --password-stdin
1518 -
1619 shell : bash
17- run : bin/parallel-processes/docker --push
20+ run : bin/parallel-processes/docker --version=${{ inputs.version }} -- push
Original file line number Diff line number Diff line change 5252 name : Build and push Docker image parallel-processes-${{ github.event.inputs.version }}
5353 uses : ./.github/actions/build-docker-image-parallel-processes
5454 with :
55+ version : ${{ github.event.inputs.version }}
5556 DOCKER_HUB_TOKEN : ${{ secrets.DOCKER_HUB_TOKEN }}
Original file line number Diff line number Diff line change 44
55readonly ROOT_DIR=" $( realpath " $( dirname " $( realpath " $0 " ) " ) /../.." ) "
66
7+ REPOSITORY_VERSION=
8+ remaining_args=()
9+ for param in " $@ " ; do
10+ if [[ " ${param} " == --version= * ]]; then
11+ REPOSITORY_VERSION=" ${param# --version=} "
12+ else
13+ remaining_args+=(" ${param} " )
14+ fi
15+ done
16+ if [ -z " ${REPOSITORY_VERSION} " ]; then
17+ echo " Error: --version=X.X.X is required"
18+ exit 1
19+ fi
20+ set -- " ${remaining_args[@]+" ${remaining_args[@]} " } "
21+
722source " ${ROOT_DIR} " /config/version/composer-version.env
8- source " ${ROOT_DIR} " /config/version/repository-version.env
923source " ${ROOT_DIR} " /config/docker/parallel-processes-docker-image-name.env
1024source " ${ROOT_DIR} " /bin/theme.inc.bash
1125
Original file line number Diff line number Diff line change @@ -77,17 +77,9 @@ function updateChangelog() {
7777 " ${ROOT_DIR} " /bin/release/changelog " ${NEW_REPOSITORY_VERSION} "
7878}
7979
80- function updateRepositoryVersion() {
81- trap onError ERR
82-
83- echo " Edit REPOSITORY_VERSION"
84- echo " REPOSITORY_VERSION=${NEW_REPOSITORY_VERSION} " > " ${ROOT_DIR} " /config/version/repository-version.env
85- }
86-
8780initLog
8881updateReleaseBadge
8982updateCodeLinesBadge
9083updateCoverageBadge
9184updateComposerRequire
9285updateChangelog
93- updateRepositoryVersion
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments