Skip to content

Commit

Permalink
ci: updated to latest kash
Browse files Browse the repository at this point in the history
  • Loading branch information
robinbourianes-kalisio committed May 23, 2024
1 parent 86a9d3a commit cb2ab43
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
run: bash ./scripts/init_runner.sh ${{ github.job }}
- name: Setup workspace
env:
GITHUB_DEVELOPMENT_PAT: ${{ secrets.GH_DEVELOPMENT_PAT }}
GITHUB_DEVELOPMENT_TOKEN: ${{ secrets.GH_DEVELOPMENT_TOKEN }}
run: bash ./scripts/setup_workspace.sh
- name: Build job
env:
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# k-teleray

[![Latest Release](https://img.shields.io/github/v/tag/kalisio/k-teleray?sort=semver&label=latest)](https://github.com/kalisio/k-teleray/releases)
[![Build Status](https://github.com/kalisio/k-teleray/actions/workflows/main.yaml/badge.svg)](https://github.com/kalisio/k-teleray/actions/workflows/main.yaml)
[![CI](https://github.com/kalisio/k-teleray/actions/workflows/main.yaml/badge.svg)](https://github.com/kalisio/k-teleray/actions/workflows/main.yaml)
[![Code Climate](https://codeclimate.com/github/kalisio/k-teleray/badges/gpa.svg)](https://codeclimate.com/github/kalisio/k-teleray)
[![Test Coverage](https://codeclimate.com/github/kalisio/k-teleray/badges/coverage.svg)](https://codeclimate.com/github/kalisio/k-teleray/coverage)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

A [Krawler](https://kalisio.github.io/krawler/) based service to download data from the French gamma dose rate alert [Teleray](http://teleray.irsn.fr/aide.htm) network.

Expand Down Expand Up @@ -39,4 +42,4 @@ This project is sponsored by

## License

This project is licensed under the MIT License - see the [license file](./LICENSE) for details
This project is licensed under the MIT License - see the [license file](./LICENSE) for details
3 changes: 1 addition & 2 deletions scripts/init_runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@ JOB_ID=$1

THIS_FILE=$(readlink -f "${BASH_SOURCE[0]}")
THIS_DIR=$(dirname "$THIS_FILE")
# ROOT_DIR=$(dirname "$THIS_DIR")

. "$THIS_DIR/kash/kash.sh"

### Github Actions

init_github_build() {
install_reqs age sops nvm node16
install_reqs age sops
}

begin_group "Init $CI_ID for $JOB_ID"
Expand Down
2 changes: 1 addition & 1 deletion scripts/kash
4 changes: 2 additions & 2 deletions scripts/setup_workspace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ begin_group "Setting up workspace ..."

if [ "$CI" = true ]; then
WORKSPACE_DIR="$(dirname "$ROOT_DIR")"
DEVELOPMENT_REPO_URL="https://$GITHUB_DEVELOPMENT_PAT@github.com/kalisio/development.git"
DEVELOPMENT_REPO_URL="https://$GITHUB_DEVELOPMENT_TOKEN@github.com/kalisio/development.git"
else
while getopts "b:t" option; do
case $option in
Expand All @@ -35,4 +35,4 @@ fi

setup_job_workspace "$WORKSPACE_DIR" "$DEVELOPMENT_REPO_URL"

end_group "Setting up workspace ..."
end_group "Setting up workspace ..."

0 comments on commit cb2ab43

Please sign in to comment.