Skip to content

Commit

Permalink
simplify one of the tags
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorPopelyaev committed Nov 29, 2024
1 parent efe1f1a commit c48bb54
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions .github/workflows/release-50_publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,19 +182,9 @@ jobs:
run: |
. ../.github/scripts/common/lib.sh
chmod a+rx $BINARY
if [[ $BINARY != 'chain-spec-builder' ]]; then
RC=$(echo ${{ needs.validate-inputs.outputs.stable_tag }} | sed -n 's/.*\(-rc[0-9]*\)$/\1/p')
VERSION=$(./$BINARY --version | awk '{ print $2 }' )
release=$( echo $VERSION | cut -f1 -d- )-$RC
else
release=$(echo ${{ needs.validate-inputs.outputs.version }} | sed 's/^v//')
fi
commit=$(git rev-parse --short HEAD) && \
echo "commit=${commit}" >> $GITHUB_OUTPUT
echo "release=${release}" >> $GITHUB_OUTPUT
echo "release=$(echo ${{ needs.validate-inputs.outputs.version }})" >> $GITHUB_OUTPUT
echo "tag=$(prepare_docker_stable_tag ${{ needs.validate-inputs.outputs.stable_tag }})" >> $GITHUB_OUTPUT
- name: Fetch release tags
Expand All @@ -204,17 +194,9 @@ jobs:
shell: bash
run: |
. ../.github/scripts/common/lib.sh
chmod a+rx $BINARY
if [[ $BINARY != 'chain-spec-builder' ]]; then
VERSION=$(./$BINARY --version | awk '{ print $2 }' )
release=$( echo $VERSION | cut -f1 -d- )
else
release=$(echo ${{ needs.validate-inputs.outputs.version }} | sed 's/^v//')
fi
echo "tag=latest" >> $GITHUB_OUTPUT
echo "release=${release}" >> $GITHUB_OUTPUT
echo "release=$(echo ${{ needs.validate-inputs.outputs.version }})" >> $GITHUB_OUTPUT
echo "stable=$(prepare_docker_stable_tag ${{ needs.validate-inputs.outputs.stable_tag }})" >> $GITHUB_OUTPUT
- name: Build Injected Container image for polkadot rc
Expand Down

0 comments on commit c48bb54

Please sign in to comment.