Skip to content

Commit

Permalink
update all references of .berlin to .io (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-mm authored Jan 18, 2024
1 parent 9550208 commit 3997408
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/update-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion scripts/display_results.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/make_measurement.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3997408

Please sign in to comment.