Archived
1
0
This repository has been archived on 2024-09-09. You can view files and clone it, but cannot push or open issues or pull requests.
code-server/.woodpecker/ci.yml

62 lines
1.5 KiB
YAML
Raw Normal View History

2024-05-08 07:19:07 +02:00
when:
- event: [push, tag, manual, pull_request]
2024-05-07 09:56:13 +02:00
steps:
build:
#image: node:lts
image: node:18.20.2
commands:
- |
2024-05-10 07:18:03 +02:00
echo 'deb [trusted=yes] https://repo.goreleaser.com/apt/ /' | tee /etc/apt/sources.list.d/goreleaser.list
2024-05-07 09:56:13 +02:00
apt-get update
2024-05-10 07:18:03 +02:00
apt-get install -y nfpm
2024-05-07 11:45:11 +02:00
apt-get install -y build-essential \
ca-certificates \
curl \
dbus \
g++ \
2024-05-08 16:18:37 +02:00
gettext\
2024-05-07 11:45:11 +02:00
git \
gnupg \
jq \
libgbm1 \
libgtk-3-0 \
libkrb5-dev \
libsecret-1-dev \
libx11-dev \
libxkbfile-dev \
libxss1 \
pkg-config \
python-is-python3 \
python3 \
rsync \
xvfb
2024-05-07 09:56:13 +02:00
- yarn install
2024-05-07 10:37:15 +02:00
- yarn build
2024-05-07 11:05:04 +02:00
- export VERSION='0.0.0' && yarn build:vscode
2024-05-08 12:10:00 +02:00
- yarn release
2024-05-08 10:13:19 +02:00
- yarn release:standalone
2024-05-08 13:53:43 +02:00
- yarn package
2024-05-10 12:08:00 +02:00
- ls -la release-packages/*
2024-05-14 12:16:16 +02:00
when:
event: pull_request
branch: ${CI_REPO_DEFAULT_BRANCH}
save-package:
image: ocram85/plugin-gitea-package:0.1.0
secrets: [ gitea_user, gitea_passwd]
settings:
user:
from_secret: gitea_user
password:
from_secret: gitea_passwd
debug: "true"
owner: "ocram85"
package_name: "test_build"
package_version: "0.1.0"
2024-05-15 07:51:53 +02:00
file_source: "./release-packages/code-server-0.0.0-linux-amd64.tar.gz"
2024-05-14 12:16:16 +02:00
file_name: "code-server.tar.gz"
update: "true"
when:
event: pull_request
branch: ${CI_REPO_DEFAULT_BRANCH}