From 399740833cb5aeb6b2e1b2f372f6940ab2e1671c Mon Sep 17 00:00:00 2001 From: dan-mm <33732895+dan-mm@users.noreply.github.com> Date: Thu, 18 Jan 2024 07:49:32 +0100 Subject: [PATCH] update all references of .berlin to .io (#56) --- .github/workflows/update-tag.yml | 2 +- README.md | 4 ++-- action.yml | 2 +- scripts/display_results.sh | 2 +- scripts/make_measurement.sh | 2 +- scripts/setup.sh | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/update-tag.yml b/.github/workflows/update-tag.yml index 2739ed6d..dc9dfe6d 100644 --- a/.github/workflows/update-tag.yml +++ b/.github/workflows/update-tag.yml @@ -28,7 +28,7 @@ jobs: - name: Git config run: | git config user.name eco-ci - git config user.email eco-ci@green-coding.berlin + git config user.email eco-ci@green-coding.io - name: Update tag run: | diff --git a/README.md b/README.md index 257adc52..c7b63c6f 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,7 @@ jobs: - `label`: (optional) (default: 'measurement ##') - Used with `get_measurement` and `display_results` to identify the measurement - `send-data`: (optional) (default: true) - - Send metrics data to metrics.green-coding.berlin to create and display badge, and see an overview of the energy of your CI runs. Set to false to send no data. The data we send are: the energy value and duration of measurement; cpu model; repository name/branch/workflow_id/run_id; commit_hash; source (GitHub or GitLab). We use this data to display in our green-metrics-tool front-end here: https://metrics.green-coding.berlin/ci-index.html + - Send metrics data to metrics.green-coding.io to create and display badge, and see an overview of the energy of your CI runs. Set to false to send no data. The data we send are: the energy value and duration of measurement; cpu model; repository name/branch/workflow_id/run_id; commit_hash; source (GitHub or GitLab). We use this data to display in our green-metrics-tool front-end here: https://metrics.green-coding.io/ci-index.html - `display-table`: (optional) (default: true) - call during the `display-graph` step to either show/hide the energy reading table results in the output - `display-graph`: (optional) (default: true) @@ -189,7 +189,7 @@ where function name is one of the following: `get_measurement` - make a spot measurment here. If you wish to label the measurement, you need to set the ECO_CI_LABEL environment variable right before this call. `display_results` - will print all the measurement values to the jobs-output and prepare the artifacts, which must be exported in the normal GitLab way. -By default, we send data to our API, which will allow us to present you with a badge, and a front-end display to review your results. The data we send are: the energy value and duration of measurement; cpu model; repository name/branch/workflow_id/run_id; commit_hash; source (GitHub or GitLab). We use this data to display in our green-metrics-tool front-end here: https://metrics.green-coding.berlin/ci-index.html +By default, we send data to our API, which will allow us to present you with a badge, and a front-end display to review your results. The data we send are: the energy value and duration of measurement; cpu model; repository name/branch/workflow_id/run_id; commit_hash; source (GitHub or GitLab). We use this data to display in our green-metrics-tool front-end here: https://metrics.green-coding.io/ci-index.html If you do not wish to send us data, you can set this global variable in your pipeline: diff --git a/action.yml b/action.yml index bfe50e2f..b4328225 100644 --- a/action.yml +++ b/action.yml @@ -13,7 +13,7 @@ inputs: default: null required: false send-data: - description: 'Send metrics data to metrics.green-coding.berlin to create and display badge, and see an overview of the energy of your CI runs. Set to false to send no data.' + description: 'Send metrics data to metrics.green-coding.io to create and display badge, and see an overview of the energy of your CI runs. Set to false to send no data.' default: true required: false display-table: diff --git a/scripts/display_results.sh b/scripts/display_results.sh index 34d039f4..8e7e473b 100755 --- a/scripts/display_results.sh +++ b/scripts/display_results.sh @@ -121,7 +121,7 @@ function display_results { if [[ ${send_data} == 'true' && ${display_badge} == 'true' ]]; then get_endpoint=$API_BASE"/v1/ci/measurement/get" - metrics_url="https://metrics.green-coding.berlin" + metrics_url="https://metrics.green-coding.io" echo "Badge for your README.md:" >> $output echo ' ```' >> $output diff --git a/scripts/make_measurement.sh b/scripts/make_measurement.sh index fb668cce..ae797a17 100755 --- a/scripts/make_measurement.sh +++ b/scripts/make_measurement.sh @@ -80,7 +80,7 @@ function make_measurement() { if [[ $send_data == 'true' ]]; then add_endpoint=$API_BASE"/v1/ci/measurement/add" - metrics_url="https://metrics.green-coding.berlin" + metrics_url="https://metrics.green-coding.io" value=$total_energy value_mJ=$(echo "$value*1000" | bc -l | cut -d '.' -f 1) diff --git a/scripts/setup.sh b/scripts/setup.sh index bbb41730..48e76bea 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -62,7 +62,7 @@ function start_measurement { # call init_variables source "$(dirname "$0")/vars.sh" cpu_vars - source "$(dirname "$0")/vars.sh" add_var API_BASE "https://api.green-coding.berlin" + source "$(dirname "$0")/vars.sh" add_var API_BASE "https://api.green-coding.io" source "$(dirname "$0")/vars.sh" add_var INIT "DONE" # start measurement