2023-02-13 16:04:43 +05:30
|
|
|
pipeline:
|
|
|
|
build:
|
|
|
|
image: python
|
|
|
|
when:
|
|
|
|
event: [ push, pull_request, tag, deployment ]
|
2023-03-09 02:30:43 +05:30
|
|
|
branch: master
|
2023-02-13 16:04:43 +05:30
|
|
|
commands:
|
2023-10-20 02:18:42 +05:30
|
|
|
- apt-get update
|
|
|
|
- apt-get install -y ca-certificates curl gnupg tar wget
|
|
|
|
- mkdir -p /etc/apt/keyrings
|
|
|
|
- curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
|
2023-10-20 03:19:22 +05:30
|
|
|
- echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
|
2023-10-20 02:18:42 +05:30
|
|
|
- apt-get -y install nodejs npm
|
|
|
|
- npm install --global yarn
|
2023-02-13 16:04:43 +05:30
|
|
|
- apt update && apt-get -y --no-install-recommends install nodejs tar gpg curl wget
|
|
|
|
- make env
|
|
|
|
- make
|
|
|
|
- make ci-deploy
|
2023-02-13 16:50:36 +05:30
|
|
|
secrets: [ FORGEJO_WRITE_DEPLOY_KEY, LIBREPAGES_DEPLOY_SECRET ]
|