fix: load secrets in CI

pull/6/head
Aravinth Manivannan 2022-04-16 11:26:22 +05:30
parent 0ee38903c7
commit d6c654783a
Signed by: realaravinth
GPG Key ID: AD9F0F08E855ED88
2 changed files with 12 additions and 2 deletions

View File

@ -8,3 +8,4 @@ pipeline:
- make
- ls -lah && find scripts && cat scripts/ci.sh
- make ci-deploy
secrets: [ pages_deploy_secret, hostea_write_deploy_key]

View File

@ -15,11 +15,20 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
set -Eeuo pipefail
source $(pwd)/scripts/lib.sh
set -xEeuo pipefail
#source $(pwd)/scripts/lib.sh
readonly SSH_ID_FILE=/tmp/ci-ssh-id
match_arg() {
if [ $1 == $2 ] || [ $1 == $3 ]
then
return 0
else
return 1
fi
}
help() {
cat << EOF
USAGE: ci.sh [SUBCOMMAND]