Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix github action to publish to the legacy repository #82

Merged
merged 1 commit into from
Nov 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading