Skip to content

Commit

Permalink
A0-2894: Store send-runtime-hook work in progress (#1313)
Browse files Browse the repository at this point in the history
# Description

* Removes not used `send-runtime-hook`
* Extract the new version of the hook to another repo
* Hook is **not** enabled, as work is not finished, yet it is worth to
clean repos and version current code


## Type of change

Please delete options that are not relevant.

- New feature (non-breaking change which adds functionality)

# Checklist:

<!-- delete when not applicable to your PR -->

- I have made corresponding changes to the existing documentation

# Companion PRs

Cardinal-Cryptography/docker-send-runtime-hook#3
Cardinal-Cryptography/aleph-apps#559
  • Loading branch information
Marcin-Radecki authored Aug 8, 2023
1 parent cdb695f commit 32be2e7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 176 deletions.
11 changes: 9 additions & 2 deletions .github/actions/create-featurenet/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,25 +138,32 @@ runs:
# yamllint disable rule:line-length
run: |
cd "${{ inputs.repo-apps-name }}"
# featurenet creation from commit from PR
if [[ "${{ inputs.featurenet-aleph-node-image }}" == "" ]]; then
pr_image_tag="fe-${{ steps.get-ref-properties.outputs.branch-name-for-argo-with-sha }}"
fnet_aleph_node_image="${{ inputs.ecr-public-registry }}feature-env-aleph-node:${pr_image_tag}"
fnet_bootstrap_chain_node_image="${{ steps.get-ref-properties.outputs.sha }}"
fnet_create_hook="false"
# updatenet creation from Testnet or Mainnet image
elif [[ "${{ inputs.featurenet-aleph-node-image }}" == "testnet" || \
"${{ inputs.featurenet-aleph-node-image }}" == "mainnet" ]]; then
ecr_image_tag=$(echo "${{ steps.get-node-commit-sha.outputs.sha }}")
ecr_image_tag="${{ steps.get-node-commit-sha.outputs.sha }}"
fnet_aleph_node_image="${{ inputs.ecr-public-registry }}aleph-node:${ecr_image_tag}"
fnet_bootstrap_chain_node_image="${{ inputs.featurenet-aleph-node-image }}"
fnet_create_hook="false"
# updatenet update, ie updating binary to given version and runtime update
else
fnet_aleph_node_image="${{ inputs.ecr-public-registry }}aleph-node:${{ inputs.featurenet-aleph-node-image }}"
fnet_bootstrap_chain_node_image="none"
# Disabling hook here as work in progress
fnet_create_hook="false"
fi
./Ops.sh create-featurenet \
"${{ steps.get-argocd-featurnet-app-name.outputs.name }}" \
"${fnet_aleph_node_image}" \
"${fnet_bootstrap_chain_node_image}" \
"${{ inputs.rolling-update-partition }}" \
false
"${fnet_create_hook}"
# yamllint enable rule:line-length

- name: Set featurenet expiration
Expand Down
106 changes: 0 additions & 106 deletions .github/workflows/build-send-postsync-hook-runtime-image.yml

This file was deleted.

17 changes: 0 additions & 17 deletions docker-runtime-hook/Dockerfile

This file was deleted.

51 changes: 0 additions & 51 deletions docker-runtime-hook/entrypoint.sh

This file was deleted.

0 comments on commit 32be2e7

Please sign in to comment.