forked from Hostea/website
fix: load secrets in CI
parent
0ee38903c7
commit
d6c654783a
|
@ -8,3 +8,4 @@ pipeline:
|
||||||
- make
|
- make
|
||||||
- ls -lah && find scripts && cat scripts/ci.sh
|
- ls -lah && find scripts && cat scripts/ci.sh
|
||||||
- make ci-deploy
|
- make ci-deploy
|
||||||
|
secrets: [ pages_deploy_secret, hostea_write_deploy_key]
|
||||||
|
|
|
@ -15,11 +15,20 @@
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# 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/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
set -Eeuo pipefail
|
set -xEeuo pipefail
|
||||||
source $(pwd)/scripts/lib.sh
|
#source $(pwd)/scripts/lib.sh
|
||||||
|
|
||||||
readonly SSH_ID_FILE=/tmp/ci-ssh-id
|
readonly SSH_ID_FILE=/tmp/ci-ssh-id
|
||||||
|
|
||||||
|
match_arg() {
|
||||||
|
if [ $1 == $2 ] || [ $1 == $3 ]
|
||||||
|
then
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
help() {
|
help() {
|
||||||
cat << EOF
|
cat << EOF
|
||||||
USAGE: ci.sh [SUBCOMMAND]
|
USAGE: ci.sh [SUBCOMMAND]
|
||||||
|
|
Loading…
Reference in New Issue