Skip to content

Commit

Permalink
test pr workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard87 committed Dec 4, 2023
1 parent 00d30fa commit e17c61e
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 5 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
on:
pull_request:
workflow_dispatch:

permissions:
id-token: write
contents: write

jobs:
test:
runs-on: ubuntu-latest

steps:
- run: echo "hello world!"
5 changes: 5 additions & 0 deletions scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ This scripts takes care of bootstrapping new cluster (if it hasn't been created

The whole process should be handled by the [migrate.sh](./migrate.sh) script. See file header in for usage. The only exception is the last manual step to make the cluster the active one.

#### 2.1.2 Manuall steps:

- Run SQL Server scripts to fix user accounts for vulnerability scanner and cost api
- Trigger Github Action to migrate custom ingresses. Change active cluster here: https://github.com/equinor/radix-flux/edit/master/clusters/development/postBuild.yaml (development)

### 2.2 Setting up a cluster from scratch

There are seven steps to setting up a Radix cluster from scratch. These steps can be run individually when modifying an existing cluster, or sequentially when setting up a new cluster:
Expand Down
4 changes: 2 additions & 2 deletions scripts/cost-allocation/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
###

# NORMAL
# RADIX_ZONE_ENV=../radix-zone/radix_zone_dev.env CLUSTER_NAME="weekly-2" ./bootstrap.sh
# RADIX_ZONE_ENV=../radix-zone/radix_zone_dev.env CLUSTER_NAME="weekly-49" ./bootstrap.sh

#######################################################################################
### START
Expand Down Expand Up @@ -188,4 +188,4 @@ printf "Done bootstrapping Radix Cost Allocation prerequisites.\n"

(RADIX_ZONE_ENV="$RADIX_ZONE_ENV" USER_PROMPT="$USER_PROMPT" REGENERATE_SQL_PASSWORD="$REGENERATE_API_PASSWORD" "${script_dir_path}/bootstrap_api.sh")
wait # wait for subshell to finish
printf "Done bootstrapping Radix Cost Allocation API prerequisites.\n"
printf "Done bootstrapping Radix Cost Allocation API prerequisites.\n"
2 changes: 1 addition & 1 deletion scripts/velero/restore/restore_apps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
# RADIX_ZONE_ENV=../../radix-zone/radix_zone_dev.env SOURCE_CLUSTER=weekly-25 BACKUP_NAME=all-hourly-20190703064411 ./restore_apps.sh

# Example: Restore into different cluster from where the backup was done
# RADIX_ZONE_ENV=../../radix-zone/radix_zone_dev.env SOURCE_CLUSTER=dev-1 DEST_CLUSTER=dev-2 BACKUP_NAME=all-hourly-20190703064411 ./restore_apps.sh
# RADIX_ZONE_ENV=../../radix-zone/radix_zone_dev.env SOURCE_CLUSTER=weekly-49 DEST_CLUSTER=dev-2 BACKUP_NAME=migration-20231204101304 ./restore_apps.sh

#######################################################################################
### DEVELOPMENT
Expand Down
4 changes: 2 additions & 2 deletions scripts/vulnerability-scanner/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
###

# NORMAL
# RADIX_ZONE_ENV=../radix-zone/radix_zone_dev.env CLUSTER_NAME="weekly-2" ./bootstrap.sh
# RADIX_ZONE_ENV=../radix-zone/radix_zone_dev.env CLUSTER_NAME="weekly-49" ./bootstrap.sh

#######################################################################################
### START
Expand Down Expand Up @@ -191,4 +191,4 @@ printf "Done bootstrapping Radix Vulnerability Scanner prerequisites.\n"
(RADIX_ZONE_ENV="$RADIX_ZONE_ENV" USER_PROMPT="$USER_PROMPT" REGENERATE_SQL_PASSWORD="$REGENERATE_API_PASSWORD" "${script_dir_path}/bootstrap_api.sh")

wait # wait for subshell to finish
printf "Done bootstrapping Radix Vulnerability Scanner API prerequisites.\n"
printf "Done bootstrapping Radix Vulnerability Scanner API prerequisites.\n"

0 comments on commit e17c61e

Please sign in to comment.