Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: build-docker-image-parallel-processes
description: Build Docker image parallel-processes

inputs:
version:
description: 'Version to build'
required: true
DOCKER_HUB_TOKEN:
description: 'hub.docker.com token'
required: true
Expand All @@ -14,4 +17,4 @@ runs:
run: echo "${{ inputs.DOCKER_HUB_TOKEN }}" | docker login --username steevanb --password-stdin
-
shell: bash
run: bin/parallel-processes/docker --push
run: bin/parallel-processes/docker --version=${{ inputs.version }} --push
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,5 @@ jobs:
name: Build and push Docker image parallel-processes-${{ github.event.inputs.version }}
uses: ./.github/actions/build-docker-image-parallel-processes
with:
version: ${{ github.event.inputs.version }}
DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }}
16 changes: 15 additions & 1 deletion bin/parallel-processes/docker
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,22 @@ set -eu

readonly ROOT_DIR="$(realpath "$(dirname "$(realpath "$0")")/../..")"

REPOSITORY_VERSION=
remaining_args=()
for param in "$@"; do
if [[ "${param}" == --version=* ]]; then
REPOSITORY_VERSION="${param#--version=}"
else
remaining_args+=("${param}")
fi
done
if [ -z "${REPOSITORY_VERSION}" ]; then
echo "Error: --version=X.X.X is required"
exit 1
fi
set -- "${remaining_args[@]+"${remaining_args[@]}"}"

source "${ROOT_DIR}"/config/version/composer-version.env
source "${ROOT_DIR}"/config/version/repository-version.env
source "${ROOT_DIR}"/config/docker/parallel-processes-docker-image-name.env
source "${ROOT_DIR}"/bin/theme.inc.bash

Expand Down
8 changes: 0 additions & 8 deletions bin/release/prepare
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,9 @@ function updateChangelog() {
"${ROOT_DIR}"/bin/release/changelog "${NEW_REPOSITORY_VERSION}"
}

function updateRepositoryVersion() {
trap onError ERR

echo "Edit REPOSITORY_VERSION"
echo "REPOSITORY_VERSION=${NEW_REPOSITORY_VERSION}" > "${ROOT_DIR}"/config/version/repository-version.env
}

initLog
updateReleaseBadge
updateCodeLinesBadge
updateCoverageBadge
updateComposerRequire
updateChangelog
updateRepositoryVersion
1 change: 0 additions & 1 deletion config/version/repository-version.env

This file was deleted.