Skip to content

Commit 93d4cb6

Browse files
🚀 first commit
0 parents  commit 93d4cb6

File tree

4 files changed

+47
-0
lines changed

4 files changed

+47
-0
lines changed

Diff for: ‎Dockerfile

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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"]

Diff for: ‎README.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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`.

Diff for: ‎action.yaml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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 }}

Diff for: ‎entrypoint.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh -l
2+
3+
./openstatus whoami --access-token $INPUT_API_KEY --config $INPUT_CONFIG_PATH
4+
5+
exit 0

0 commit comments

Comments
 (0)