Skip to content

Commit

Permalink
Tweak names and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikolaj Gasior committed Dec 18, 2023
1 parent 39d4873 commit 659ddc9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
1 change: 1 addition & 0 deletions .github/workflows/_check-vars-and-secrets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
-z "${{ vars.ECR_PUBLIC_HOST }}" || \
-z "${{ vars.ECR_PUBLIC_REGISTRY }}" || \
-z "${{ vars.ECR_ALEPH_NODE_REPO }}" || \
-z "${{ vars.ECR_DEV_ALEPH_NODE_REPO }}" || \
-z "${{ vars.KUSTOMIZE_VERSION }}"
]]; then
echo "!!! Some repository variables are either missing or empty."
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/bridgenet-recreate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,5 @@ jobs:
featurenet-name: bridgenet
aleph-node-image: ${{ needs.get-full-docker-image-path-testnet.outputs.fqdn-image }}
expiration: 'never'
validators: '5'
internal: true
delete-first: false
13 changes: 6 additions & 7 deletions .github/workflows/bridgenet-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ name: Bridgenet - Update
on:
workflow_dispatch:
inputs:
aleph-node-image:
description: Git ref from main branch
ref:
description: 'git ref: full commit hash, branch, tag'
required: true
type: string

Expand All @@ -22,13 +22,13 @@ jobs:
- name: Validate inputs
shell: bash
run: |
if [[ ! '${{ inputs.aleph-node-image }}' =~ ^[a-z0-9][a-z0-9\._\-]{1,48}$ ]]; then
if [[ ! '${{ inputs.ref }}' =~ ^[a-z0-9][a-z0-9\._\-]{1,48}$ ]]; then
echo "!!! Invalid aleph-node image"
exit 1
fi
get-full-docker-image-path-from-ref:
name: Get full aleph-node full docker path path for mainnet
name: Get full aleph-node full docker path path for ref
needs: [check-inputs]
runs-on: ubuntu-20.04
outputs:
Expand All @@ -40,7 +40,7 @@ jobs:
id: get-aleph-node-fqdn-image
uses: Cardinal-Cryptography/github-actions/get-aleph-node-fqdn-image@v6
with:
ref: ${{ inputs.aleph-node-image }}
ref: ${{ inputs.ref }}
test-binary: 'false'
ecr-dev-node-repo: ${{ vars.ECR_DEV_ALEPH_NODE_REPO }}
ecr-prod-node-repo: ${{ vars.ECR_ALEPH_NODE_REPO }}
Expand All @@ -53,7 +53,7 @@ jobs:
steps:
- name: Exit 1
run: |
echo "Aleph-node image '${{ inputs.aleph-node-image }}' does not exist"
echo "Aleph-node image '${{ needs.get-full-docker-image-path-main-branch.outputs.fqdn-image }}' does not exist"
exit 1
update-bridgenet:
Expand All @@ -68,5 +68,4 @@ jobs:
aleph-node-image: ${{ needs.get-full-docker-image-path-main-branch.outputs.fqdn-image }}
rolling-update-partition: '0'
expiration: 'never'
validators: '5'
internal: true

0 comments on commit 659ddc9

Please sign in to comment.