Skip to content
Snippets Groups Projects
Unverified Commit 61182fb8 authored by Egor_P's avatar Egor_P Committed by GitHub
Browse files

[stable2409] Backport docker fix to 2409 (#6021)

This PR backports fix for the docker publishing flow from master:
- https://github.com/paritytech/polkadot-sdk/pull/5896
parent 660da7a8
Branches
No related merge requests found
...@@ -462,7 +462,7 @@ function get_polkadot_node_version_from_code() { ...@@ -462,7 +462,7 @@ function get_polkadot_node_version_from_code() {
validate_stable_tag() { validate_stable_tag() {
tag="$1" tag="$1"
pattern='^stable[0-9]+(-[0-9]+)?$' pattern="^stable[0-9]{4}(-[0-9]+)?(-rc[0-9]+)?$"
if [[ $tag =~ $pattern ]]; then if [[ $tag =~ $pattern ]]; then
echo $tag echo $tag
......
...@@ -86,7 +86,7 @@ jobs: ...@@ -86,7 +86,7 @@ jobs:
steps: steps:
- name: Checkout sources - name: Checkout sources
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Validate inputs - name: Validate inputs
id: validate_inputs id: validate_inputs
...@@ -111,7 +111,7 @@ jobs: ...@@ -111,7 +111,7 @@ jobs:
steps: steps:
- name: Checkout sources - name: Checkout sources
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
#TODO: this step will be needed when automated triggering will work #TODO: this step will be needed when automated triggering will work
#this step runs only if the workflow is triggered automatically when new release is published #this step runs only if the workflow is triggered automatically when new release is published
...@@ -134,7 +134,7 @@ jobs: ...@@ -134,7 +134,7 @@ jobs:
. ./.github/scripts/common/lib.sh . ./.github/scripts/common/lib.sh
VERSION="${{ needs.validate-inputs.outputs.VERSION }}" VERSION="${{ needs.validate-inputs.outputs.VERSION }}"
if [[ $BINARY == 'polkadot' ]]; then if [[ ${{ inputs.binary }} == 'polkadot' ]]; then
bins=(polkadot polkadot-prepare-worker polkadot-execute-worker) bins=(polkadot polkadot-prepare-worker polkadot-execute-worker)
for bin in "${bins[@]}"; do for bin in "${bins[@]}"; do
fetch_release_artifacts_from_s3 $bin fetch_release_artifacts_from_s3 $bin
...@@ -166,7 +166,7 @@ jobs: ...@@ -166,7 +166,7 @@ jobs:
steps: steps:
- name: Checkout sources - name: Checkout sources
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Download artifacts - name: Download artifacts
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
...@@ -194,15 +194,12 @@ jobs: ...@@ -194,15 +194,12 @@ jobs:
run: | run: |
. ./.github/scripts/common/lib.sh . ./.github/scripts/common/lib.sh
release="${{ needs.validate-inputs.outputs.VERSION }}" && \ echo "release=${{ needs.validate-inputs.outputs.stable_tag }}" >> $GITHUB_OUTPUT
echo "release=${release}" >> $GITHUB_OUTPUT
commit=$(git rev-parse --short HEAD) && \ commit=$(git rev-parse --short HEAD) && \
echo "commit=${commit}" >> $GITHUB_OUTPUT echo "commit=${commit}" >> $GITHUB_OUTPUT
tag=$(git name-rev --tags --name-only $(git rev-parse HEAD)) && \ echo "tag=${{ needs.validate-inputs.outputs.version }}" >> $GITHUB_OUTPUT
[ "${tag}" != "undefined" ] && echo "tag=${tag}" >> $GITHUB_OUTPUT || \
echo "No tag, doing without"
- name: Fetch release tags - name: Fetch release tags
working-directory: release-artifacts working-directory: release-artifacts
...@@ -322,7 +319,7 @@ jobs: ...@@ -322,7 +319,7 @@ jobs:
environment: release environment: release
steps: steps:
- name: Checkout sources - name: Checkout sources
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3.6.1 uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3.6.1
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment