File tree 4 files changed +47
-0
lines changed
4 files changed +47
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM alpine:3.21.3
2
+
3
+ RUN apk --no-cache add curl
4
+
5
+ WORKDIR /home/openstatus
6
+
7
+ COPY entrypoint.sh .
8
+
9
+ RUN curl -o cli.tar.gz -L https://github.com/openstatusHQ/cli/releases/latest/download/cli_Linux_x86_64.tar.gz
10
+
11
+ RUN tar -xf ./cli.tar.gz
12
+
13
+ ENTRYPOINT ["/home/openstatus/entrypoint.sh" ]
Original file line number Diff line number Diff line change
1
+ # OpenStatus Synthetics CI
2
+
3
+ This repository contains the GitHub Action that powers the OpenStatus Synthetics CI.
4
+
5
+ ## Inputs
6
+
7
+ ## ` api_key `
8
+ ** Required** The OpenStatus API key.
9
+
10
+ ## ` config_path `
11
+ the path of the config file. Default ` config.openstatus.yaml ` .
Original file line number Diff line number Diff line change
1
+ name : ' OpenStatus Synthetics CI'
2
+ description : ' Run your OpenStatus synthetics checks as part of your GitHub Actions workflow.'
3
+ author : ' OpenStatus'
4
+
5
+ inputs :
6
+ api_key :
7
+ description : ' OpenStatus API key'
8
+ required : true
9
+ config_path :
10
+ description : ' Path to the OpenStatus configuration file'
11
+ required : false
12
+
13
+ runs :
14
+ using : docker
15
+ image : Dockerfile
16
+ args :
17
+ - ${{ inputs.api_key }}
18
+ - ${{ inputs.config_path }}
Original file line number Diff line number Diff line change
1
+ #! /bin/sh -l
2
+
3
+ ./openstatus whoami --access-token $INPUT_API_KEY --config $INPUT_CONFIG_PATH
4
+
5
+ exit 0
You can’t perform that action at this time.
0 commit comments