Skip to content

Commit

Permalink
fix github action to publish to the legacy repository (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
noandrea authored Nov 29, 2023
1 parent 60de080 commit 0688790
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/publish-docker-purestake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
- name: Get Sha
id: get-sha
run: |
echo "sha::$(git log -1 --format="%H")" >> "$GITHUB_OUTPUT"
echo "sha4::$(git log -1 --format="%H" | cut -c1-4)" >> "$GITHUB_OUTPUT"
echo "sha=$(git log -1 --format="%H")" >> "$GITHUB_OUTPUT"
echo "sha4=$(git log -1 --format="%H" | cut -c1-4)" >> "$GITHUB_OUTPUT"
- name: Get last tracing runtime spec version
id: get-last-spec-version
run: |
Expand All @@ -39,7 +39,7 @@ jobs:
fi
fi
done
echo "last_spec_version::$MAX" >> "$GITHUB_OUTPUT"
echo "last_spec_version=$MAX" >> "$GITHUB_OUTPUT"
echo "last_spec_version: $MAX"
- name: Prepare
Expand All @@ -48,15 +48,15 @@ jobs:
DOCKER_IMAGE=purestake/moonbeam-tracing
DOCKER_TAG="${DOCKER_IMAGE}:${{ github.event.inputs.client_tag }}-${{ steps.get-last-spec-version.outputs.last_spec_version }}-${{ steps.get-sha.outputs.sha4 }}"
DOCKER_LATEST_TAG="${DOCKER_IMAGE}:${{ github.event.inputs.client_tag }}-${{ steps.get-last-spec-version.outputs.last_spec_version }}-latest"
echo "docker_tag::${DOCKER_TAG}" >> "$GITHUB_OUTPUT"
echo "docker_latest_tag::${DOCKER_LATEST_TAG}" >> "$GITHUB_OUTPUT"
echo "created::$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> "$GITHUB_OUTPUT"
echo "docker_tag=${DOCKER_TAG}" >> "$GITHUB_OUTPUT"
echo "docker_latest_tag=${DOCKER_LATEST_TAG}" >> "$GITHUB_OUTPUT"
echo "created=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> "$GITHUB_OUTPUT"
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Check existing docker image
id: check-docker-image
run: |
echo "image_exists::$(docker manifest inspect ${{ steps.prep.outputs.docker_tag }} > /dev/null && echo "true" || echo "false")" >> "$GITHUB_OUTPUT"
echo "image_exists=$(docker manifest inspect ${{ steps.prep.outputs.docker_tag }} > /dev/null && echo "true" || echo "false")" >> "$GITHUB_OUTPUT"
- name: Display variables
run: |
echo git_ref: ${{ github.event.inputs.overrides_branch }}
Expand Down

0 comments on commit 0688790

Please sign in to comment.