-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathentrypoint.sh
33 lines (27 loc) · 1.19 KB
/
entrypoint.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
################################################################################
# Simple docker script
################################################################################
########
# VARS #
########
GITHUB_EVENT_PATH="${GITHUB_EVENT_PATH}" # Github Event Path
GITHUB_REPOSITORY="${GITHUB_REPOSITORY}" # GitHub Org/Repo passed from system
GITHUB_RUN_ID="${GITHUB_RUN_ID}" # GitHub RUn ID to point to logs
GITHUB_SHA="${GITHUB_SHA}" # GitHub sha from the commit
GITHUB_TOKEN="${GITHUB_TOKEN}" # GitHub Token passed from environment
GITHUB_WORKSPACE="${GITHUB_WORKSPACE}" # Github Workspace
VAR="${VAR:-nothing}" # Default var
################################################################################
##################
# Run the script #
##################
echo "----------------------------------------"
echo "Welcome to this container action!"
echo "----------------------------------------"
echo ""
echo "----------------------------------------"
echo "Heres whats in the env..."
printenv
echo "----------------------------------------"
echo "You passed the Var:[${VAR}]"