Skip to content

Commit

Permalink
chore: rename production next image
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Klick <[email protected]>
  • Loading branch information
nathanklick committed Mar 22, 2024
1 parent decc79b commit 9ca292f
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -o pipefail
set +e

readonly DOCKER_IMAGE_NAME="hedera-network-node"
readonly DOCKER_IMAGE_NAME="consensus-node"

GROUP_ACTIVE="false"

Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/zxc-publish-production-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:
description: "Custom Job Name:"
required: false
type: string
default: "GCP"
default: "Publish Production Image (GCP)"
outputs:
docker-image:
description: "Docker Image:"
Expand All @@ -39,10 +39,10 @@ permissions:

jobs:
publish-image:
name: ${{ inputs.custom-job-name || 'GCP' }}
name: ${{ inputs.custom-job-name || 'Publish Production Image (GCP)' }}
runs-on: [self-hosted, Linux, large, ephemeral]
outputs:
docker-image: ${{ steps.set-registry.outputs.docker-tag-base }}/hedera-network-node:${{ inputs.version }}
docker-image: ${{ steps.set-registry.outputs.docker-tag-base }}/consensus-node:${{ inputs.version }}
steps:
- name: Checkout Code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
Expand Down Expand Up @@ -151,10 +151,10 @@ jobs:

- name: Stage SDK Artifacts
run: |
mkdir -p hedera-node/infrastructure/docker/containers/production-next/hedera-network-node/sdk
cp -rvf ~/artifact-build/* hedera-node/infrastructure/docker/containers/production-next/hedera-network-node/sdk/
mkdir -p hedera-node/infrastructure/docker/containers/production-next/consensus-node/sdk
cp -rvf ~/artifact-build/* hedera-node/infrastructure/docker/containers/production-next/consensus-node/sdk/
- name: Build Network Node Image
- name: Build Consensus Node Image
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # v5.1.0
env:
SOURCE_DATE_EPOCH: ${{ steps.commit.outputs.source-date }}
Expand All @@ -164,25 +164,25 @@ jobs:
platforms: linux/amd64,linux/arm64
build-args: |
SOURCE_DATE_EPOCH=${{ steps.commit.outputs.source-date }}
context: hedera-node/infrastructure/docker/containers/production-next/hedera-network-node
tags: ${{ steps.set-registry.outputs.docker-tag-base }}/hedera-network-node:${{ inputs.version }}
context: hedera-node/infrastructure/docker/containers/production-next/consensus-node
tags: ${{ steps.set-registry.outputs.docker-tag-base }}/consensus-node:${{ inputs.version }}

- name: Render Job Summary
run: |
NETWORK_NODE_MAIN_LINK="Not Applicable"
CONSENSUS_NODE_LINK="Not Applicable"
if [[ "${{ inputs.dry-run-enabled }}" != true ]]; then
NETWORK_NODE_MAIN_LINK="[GCP Console](https://${{ steps.set-registry.outputs.docker-tag-base }}/hedera-network-node:${{ inputs.version }})"
CONSENSUS_NODE_LINK="[GCP Console](https://${{ steps.set-registry.outputs.docker-tag-base }}/consensus-node:${{ inputs.version }})"
fi
printf "### Published Docker Images\n" >> "${GITHUB_STEP_SUMMARY}"
printf "| Image Name | Version | URL | Supported Architectures |\n" >> "${GITHUB_STEP_SUMMARY}"
printf "| ---------- | ------- | --- | ----------------------- |\n" >> "${GITHUB_STEP_SUMMARY}"
printf "| %s | %s | %s | %s |\n" \
"${{ steps.set-registry.outputs.docker-tag-base }}/main-network-node" \
"${{ steps.set-registry.outputs.docker-tag-base }}/consensus-node" \
"${{ inputs.version }}" \
"${NETWORK_NODE_MAIN_LINK}" \
"${CONSENSUS_NODE_LINK}" \
"linux/amd64, linux/arm64" >> "${GITHUB_STEP_SUMMARY}"
printf "\n\n" >> "${GITHUB_STEP_SUMMARY}"
4 changes: 2 additions & 2 deletions .github/workflows/zxc-verify-docker-build-determinism.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ env:
DOCKER_MANIFEST_GENERATOR: .github/workflows/support/scripts/generate-docker-artifact-baseline.sh
DOCKER_MANIFEST_PATH: ${{ github.workspace }}/.manifests/docker
DOCKER_REGISTRY: localhost:5000
DOCKER_IMAGE_NAME: hedera-network-node
DOCKER_CONTEXT_PATH: hedera-node/infrastructure/docker/containers/production-next/hedera-network-node
DOCKER_IMAGE_NAME: consensus-node
DOCKER_CONTEXT_PATH: hedera-node/infrastructure/docker/containers/production-next/consensus-node
SKOPEO_VERSION: v1.14.0

jobs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ cat <<EOF
**************** ****************************************************************************************
#### Starting Hedera Services Node Software ####
#### Starting Hedera Consensus Node Software ####
EOF
Expand Down

0 comments on commit 9ca292f

Please sign in to comment.