mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 23:47:56 +00:00
fix docker tag for polkadot image (#2702)
This PR has a tiny fix for the proper creation of the tag for the pokadot's docker tag.
This commit is contained in:
@@ -220,6 +220,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
polkadot_apt_version: ${{ steps.fetch-latest-apt.outputs.polkadot_apt_version }}
|
||||
polkadot_container_tag: ${{ steps.fetch-latest-apt.outputs.polkadot_container_tag }}
|
||||
container:
|
||||
image: paritytech/parity-keyring
|
||||
options: --user root
|
||||
@@ -230,7 +231,9 @@ jobs:
|
||||
apt update
|
||||
apt show polkadot
|
||||
version=$(apt show polkadot 2>/dev/null | grep "Version:" | awk '{print $2}')
|
||||
tag=$(echo $version | sed 's/-.*//')
|
||||
echo "polkadot_apt_version=v$version" >> $GITHUB_OUTPUT
|
||||
echo "polkadot_container_tag=v$tag" >> $GITHUB_OUTPUT
|
||||
echo "You passed ${{ inputs.version }} but this is ignored"
|
||||
echo "We use the version from the Debian Package: $version"
|
||||
|
||||
@@ -276,7 +279,7 @@ jobs:
|
||||
# TODO: It would be good to get rid of this GHA that we don't really need.
|
||||
tags: |
|
||||
parity/polkadot:latest
|
||||
parity/polkadot:${{ needs.fetch-latest-debian-package-version.outputs.polkadot_apt_version }}
|
||||
parity/polkadot:${{ needs.fetch-latest-debian-package-version.outputs.polkadot_container_tag }}
|
||||
build-args: |
|
||||
VCS_REF=${{ github.ref }}
|
||||
POLKADOT_VERSION=${{ needs.fetch-latest-debian-package-version.outputs.polkadot_apt_version }}
|
||||
|
||||
Reference in New Issue
Block a user