mirror of
https://github.com/datahaven-xyz/datahaven
synced 2026-05-23 17:28:23 +00:00
fix: 🔧 Fix Docker image tags in Docker release task (#235)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
parent
dda9111ee6
commit
8be3c0f979
1 changed files with 8 additions and 6 deletions
14
.github/workflows/task-docker-release.yml
vendored
14
.github/workflows/task-docker-release.yml
vendored
|
|
@ -92,11 +92,13 @@ jobs:
|
|||
id: extract_tag
|
||||
run: |
|
||||
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
|
||||
TAG=$(echo '${{ steps.meta-dispatch.outputs.json }}' | jq -r '.tags[-1]')
|
||||
FULL_TAG=$(echo '${{ steps.meta-dispatch.outputs.json }}' | jq -r '.tags[-1]')
|
||||
else
|
||||
TAG=$(echo '${{ steps.meta-ci.outputs.json }}' | jq -r '.tags[-1]')
|
||||
FULL_TAG=$(echo '${{ steps.meta-ci.outputs.json }}' | jq -r '.tags[-1]')
|
||||
fi
|
||||
echo "image-tag=$TAG" >> $GITHUB_OUTPUT
|
||||
TAG_ONLY=$(echo "$FULL_TAG" | sed 's|.*:||')
|
||||
echo "image-tag=$TAG_ONLY" >> $GITHUB_OUTPUT
|
||||
echo "image-name=datahavenxyz/datahaven:$TAG_ONLY" >> $GITHUB_OUTPUT
|
||||
|
||||
# --- Conditional: Cargo cache for full builds ---
|
||||
- name: Set up cargo cache (full build)
|
||||
|
|
@ -159,13 +161,13 @@ jobs:
|
|||
# --- Smoke tests ---
|
||||
- name: Pull and test node --help
|
||||
run: |
|
||||
docker pull ${{ steps.extract_tag.outputs.image-tag }}
|
||||
docker run --rm ${{ steps.extract_tag.outputs.image-tag }} --help
|
||||
docker pull ${{ steps.extract_tag.outputs.image-name }}
|
||||
docker run --rm ${{ steps.extract_tag.outputs.image-name }} --help
|
||||
|
||||
- name: Integration test (dev chain starts)
|
||||
run: |
|
||||
docker run --rm -d -p 9944:9944 --name local-dh-node \
|
||||
${{ steps.extract_tag.outputs.image-tag }} --dev --unsafe-rpc-external
|
||||
${{ steps.extract_tag.outputs.image-name }} --dev --unsafe-rpc-external
|
||||
|
||||
- name: Wait for node to be healthy and test
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Reference in a new issue