@@ -8,13 +8,15 @@ Supported arches are:
|
||||
- amd64
|
||||
|
||||
## Environment variables
|
||||
```terminal
|
||||
| Variable | Values | default |
|
||||
|------------+----------------------------------------+----------------|
|
||||
| `TOKEN` | token for runner from github | <unset> |
|
||||
| `ARCH` | arm, arm64, x64 | x64 |
|
||||
| `OS` | linux,osx | linux |
|
||||
| `ORG` | name of the github org | <unset> |
|
||||
| `REPO` | name of the github repo | <unset> |
|
||||
| `VERSION` | version of the github runner to user | 2.280.3 |
|
||||
| `CHECKSUM` | checksum for the github runner version | valid checksum |
|
||||
```
|
||||
|
||||
| Variable | Values | default |
|
||||
|-------------------------------------------------+----------------------------------------+------------------------------------------------------------------|
|
||||
| `TOKEN` | token for runner from github | <unset> |
|
||||
| `ARCH` | arm, arm64, x64 | x64 |
|
||||
| `OS` | linux,osx | linux |
|
||||
| `ORG` | name of the github org | <unset> |
|
||||
| `REPO` | name of the github repo | <unset> |
|
||||
| `VERSION` version of the github runner to user | 2.280.3 | |
|
||||
| `CHECKSUM` | checksum for the github runner version | 69dc323312e3c5547ba1e1cc46c127e2ca8ee7d7037e17ee6965ef6dac3c142b |
|
||||
|
||||
@@ -6,8 +6,16 @@ ORG=${ORG:-dragonchaser}
|
||||
REPO=${REPO:-dockerhub-autobuild}
|
||||
OS=${OS:-linux}
|
||||
|
||||
if [ -z "${ORG}" ]; then
|
||||
echo "missing ORG, bailing out!"
|
||||
fi
|
||||
|
||||
if [ -z "${REPO}" ]; then
|
||||
echo "missing REPO, bailing out!"
|
||||
fi
|
||||
|
||||
if [ -z "${TOKEN}" ]; then
|
||||
echo "MISSING TOKEN, BAILING OUT!"
|
||||
echo "missing TOKEN, bailing out!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user