[arch-commits] Commit in woodpecker/repos (10 files)

George Rawlinson grawlinson at gemini.archlinux.org
Sat Jun 18 03:31:24 UTC 2022


    Date: Saturday, June 18, 2022 @ 03:31:24
  Author: grawlinson
Revision: 1238350

archrelease: copy trunk to community-x86_64

Added:
  woodpecker/repos/community-x86_64/
  woodpecker/repos/community-x86_64/PKGBUILD
    (from rev 1238349, woodpecker/trunk/PKGBUILD)
  woodpecker/repos/community-x86_64/agent-systemd.service
    (from rev 1238349, woodpecker/trunk/agent-systemd.service)
  woodpecker/repos/community-x86_64/agent-sysusers.conf
    (from rev 1238349, woodpecker/trunk/agent-sysusers.conf)
  woodpecker/repos/community-x86_64/agent-tmpfiles.conf
    (from rev 1238349, woodpecker/trunk/agent-tmpfiles.conf)
  woodpecker/repos/community-x86_64/agent.env
    (from rev 1238349, woodpecker/trunk/agent.env)
  woodpecker/repos/community-x86_64/server-systemd.service
    (from rev 1238349, woodpecker/trunk/server-systemd.service)
  woodpecker/repos/community-x86_64/server-sysusers.conf
    (from rev 1238349, woodpecker/trunk/server-sysusers.conf)
  woodpecker/repos/community-x86_64/server-tmpfiles.conf
    (from rev 1238349, woodpecker/trunk/server-tmpfiles.conf)
  woodpecker/repos/community-x86_64/server.env
    (from rev 1238349, woodpecker/trunk/server.env)

------------------------+
 PKGBUILD               |  129 ++++++++++++++++++++++++++++++++++++++++++
 agent-systemd.service  |   19 ++++++
 agent-sysusers.conf    |    1 
 agent-tmpfiles.conf    |    1 
 agent.env              |   59 +++++++++++++++++++
 server-systemd.service |   19 ++++++
 server-sysusers.conf   |    1 
 server-tmpfiles.conf   |    1 
 server.env             |  144 +++++++++++++++++++++++++++++++++++++++++++++++
 9 files changed, 374 insertions(+)

Copied: woodpecker/repos/community-x86_64/PKGBUILD (from rev 1238349, woodpecker/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2022-06-18 03:31:24 UTC (rev 1238350)
@@ -0,0 +1,129 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+# Contributor: Ersei <samb at disroot dot org>
+# Contributor: Anthony Wang <ta180m at pm.me>
+
+pkgbase=woodpecker
+pkgname=(
+  'woodpecker-server'
+  'woodpecker-agent'
+  'woodpecker-cli'
+)
+pkgver=0.15.3
+pkgrel=1
+pkgdesc='A simple CI engine with great extensibility'
+arch=('x86_64')
+url='https://woodpecker-ci.org'
+license=('Apache')
+depends=()
+makedepends=('git' 'go' 'yarn')
+options=('!lto')
+_commit='d8a6b6191804f58b9b0b991acc6bf7f2e9d48c7b'
+source=(
+  "$pkgbase::git+https://github.com/woodpecker-ci/woodpecker#commit=$_commit"
+  'server-systemd.service'
+  'server-sysusers.conf'
+  'server-tmpfiles.conf'
+  'server.env'
+  'agent-systemd.service'
+  'agent-sysusers.conf'
+  'agent-tmpfiles.conf'
+  'agent.env'
+)
+b2sums=('SKIP'
+        '9435cd7af8128a91fc939206fedd767c719c94abd027150599d2079dbffd67f6886ef7ccb53449e09f8f3e86b0ad2bfa33b7002140c772421f5b6e936d008e6f'
+        '92d4b131ac328661bc35f59904bc94bd59df8e61d16dcf13d279641fb825d75949b3da469800573e03bea407a2eb2c5b1536f6c5ae4d33db218a20fb42068f5b'
+        'd28d74767a4e36a34632308449a902abcb62c3f06260bab966825d937e04862c531f2c25273186a0ca3503274560770142154f7829fc850e980455f7c902734a'
+        'c2f6c3764b8dffaabc1e5583df3d5b8f9a3b731aa190b940ca57cb9f47d1d7aee94c7ffbeefc3097bd6036d465bdc8289f3d107eda1d6e96d42b45a9579e5b95'
+        '6f5833c1d4db8f287f5a9877687fb0d8d66c91e80e9bbb0a78910f315e6dd4cba01131dfca20bcceaeb828833187ee6161b33272050967e3e1cea4cb2665cf57'
+        '373a5889c899445c4b583a48e6d0ff67d4572e30e0dfd0842b389e9338712771ec053ee3771202fe2874ee8bbfb7cb5965a04cf10d4071100c4f7c89cf2a14f3'
+        'b6479a7f3b3cf1ecaf0fc4e0653de10176af29b780ff716bf038077d70b0440e45a649ccd5ad9a12d5f52c9eecf9b5d8b5a01510a53eec7b664162c8bb9153ab'
+        '9d64fa22d5fcfb8634926220aeb89b0fa914d8e04ee39fe14abf3f170292ab2dc875fe3fe14b054ca8173c167cec4d93518d15d5f08698bd70d86dec7728dee8')
+
+pkgver() {
+  cd "$pkgbase"
+
+  git describe --tags | sed 's/^v//'
+}
+
+prepare() {
+  cd "$pkgbase"
+
+  # create directory for build output
+  mkdir build
+
+  # download dependencies
+  go mod download
+}
+
+build() {
+  cd "$pkgbase"
+
+  # generate web interface to embed in woodpecker-server
+  pushd web
+  yarn install --frozen-lockfile
+  yarn build
+  popd
+
+  # set Go flags
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+
+  # build server/agent/cli
+  go build -v \
+    -trimpath \
+    -buildmode=pie \
+    -mod=readonly \
+    -modcacherw \
+    -ldflags "-linkmode external -extldflags ${LDFLAGS}" \
+    -o build \
+    ./cmd/...
+}
+
+package_woodpecker-server() {
+  pkgdesc+=' (server)'
+  depends=('glibc')
+  backup=('etc/woodpecker/server.env')
+
+  # systemd integration
+  install -vDm644 server-systemd.service "$pkgdir/usr/lib/systemd/system/$pkgname.service"
+  install -vDm644 server-sysusers.conf "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
+  install -vDm644 server-tmpfiles.conf "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
+  install -vDm644 server.env -t "$pkgdir/etc/woodpecker"
+
+  cd "$pkgbase"
+
+  # binary
+  install -vDm755 build/server "$pkgdir/usr/bin/$pkgname"
+}
+
+package_woodpecker-agent() {
+  pkgdesc+=' (agent)'
+  depends=('glibc')
+  optdepends=(
+    'docker: Docker backend'
+    'podman: Podman backend'
+  )
+  backup=('etc/woodpecker/agent.env')
+
+  # systemd integration
+  install -vDm644 agent-systemd.service "$pkgdir/usr/lib/systemd/system/$pkgname.service"
+  install -vDm644 agent-sysusers.conf "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
+  install -vDm644 agent-tmpfiles.conf "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
+  install -vDm644 agent.env -t "$pkgdir/etc/woodpecker"
+
+  cd "$pkgbase"
+
+  # binary
+  install -vDm755 build/agent "$pkgdir/usr/bin/$pkgname"
+}
+
+package_woodpecker-cli() {
+  pkgdesc+=' (cli)'
+  depends=('glibc')
+
+  cd "$pkgbase"
+
+  # binary
+  install -vDm755 build/cli "$pkgdir/usr/bin/$pkgname"
+}

Copied: woodpecker/repos/community-x86_64/agent-systemd.service (from rev 1238349, woodpecker/trunk/agent-systemd.service)
===================================================================
--- community-x86_64/agent-systemd.service	                        (rev 0)
+++ community-x86_64/agent-systemd.service	2022-06-18 03:31:24 UTC (rev 1238350)
@@ -0,0 +1,19 @@
+[Unit]
+Description=Woodpecker agent
+Documentation=https://woodpecker-ci.org/docs/intro
+Requires=network-online.target
+After=network-online.target
+
+[Service]
+User=woodpecker-agent
+Group=woodpecker-agent
+EnvironmentFile=/etc/woodpecker/agent.env
+ExecStart=/usr/bin/woodpecker-agent
+RestartSec=5
+Restart=on-failure
+SyslogIdentifier=woodpecker-agent
+WorkingDirectory=/var/lib/woodpecker-agent
+ReadWritePaths=/var/lib/woodpecker-agent
+
+[Install]
+WantedBy=multi-user.target

Copied: woodpecker/repos/community-x86_64/agent-sysusers.conf (from rev 1238349, woodpecker/trunk/agent-sysusers.conf)
===================================================================
--- community-x86_64/agent-sysusers.conf	                        (rev 0)
+++ community-x86_64/agent-sysusers.conf	2022-06-18 03:31:24 UTC (rev 1238350)
@@ -0,0 +1 @@
+u woodpecker-agent - "Woodpecker agent daemon user" /var/lib/woodpecker-agent

Copied: woodpecker/repos/community-x86_64/agent-tmpfiles.conf (from rev 1238349, woodpecker/trunk/agent-tmpfiles.conf)
===================================================================
--- community-x86_64/agent-tmpfiles.conf	                        (rev 0)
+++ community-x86_64/agent-tmpfiles.conf	2022-06-18 03:31:24 UTC (rev 1238350)
@@ -0,0 +1 @@
+d /var/lib/woodpecker-agent 0750 woodpecker-agent woodpecker-agent

Copied: woodpecker/repos/community-x86_64/agent.env (from rev 1238349, woodpecker/trunk/agent.env)
===================================================================
--- community-x86_64/agent.env	                        (rev 0)
+++ community-x86_64/agent.env	2022-06-18 03:31:24 UTC (rev 1238350)
@@ -0,0 +1,59 @@
+# Configures gRPC address of the server.
+# Default: localhost:9000
+#WOODPECKER_SERVER=
+
+# The gRPC username.
+# Default: x-oauth-basic
+#WOODPECKER_USERNAME=
+
+# A shared secret used by server and agents to authenticate communication. A secret can be generated by openssl rand -hex 32.
+# Default: empty
+#WOODPECKER_AGENT_SECRET=
+
+# Configures the logging level. Possible values are trace, debug, info, warn, error, fatal, panic, disabled and empty.
+# Default: empty
+#WOODPECKER_LOG_LEVEL=
+
+# Enable pretty-printed debug output.
+# Default: false
+#WOODPECKER_DEBUG_PRETTY=
+
+# Disable colored debug output.
+# Default: true
+#WOODPECKER_DEBUG_NOCOLOR=
+
+# Configures the agent hostname.
+# Default: empty
+#WOODPECKER_HOSTNAME=
+
+# Configures the number of parallel builds.
+# Default: 1
+#WOODPECKER_MAX_PROCS=
+
+# Enable healthcheck endpoint.
+# Default: true
+#WOODPECKER_HEALTHCHECK=
+
+# After a duration of this time of no activity, the agent pings the server to check if the transport is still alive.
+# Default: empty
+#WOODPECKER_KEEPALIVE_TIME=
+
+# After pinging for a keepalive check, the agent waits for a duration of this time before closing the connection if no activity.
+# Default: 20s
+#WOODPECKER_KEEPALIVE_TIMEOUT=
+
+# Configures if the connection to WOODPECKER_SERVER should be made using a secure transport.
+# Default: false
+#WOODPECKER_GRPC_SECURE=
+
+# Configures if the gRPC server certificate should be verified, only valid when WOODPECKER_GRPC_SECURE is true.
+# Default: true
+#WOODPECKER_GRPC_VERIFY=
+
+# Configures the backend engine to run pipelines on. Possible values are auto-detect or docker.
+# Default: auto-detect
+#WOODPECKER_BACKEND=
+
+# Path to Docker or Podman socket. Can be an SSH address.
+# Default: unix:///var/run/docker.sock
+#DOCKER_HOST=

Copied: woodpecker/repos/community-x86_64/server-systemd.service (from rev 1238349, woodpecker/trunk/server-systemd.service)
===================================================================
--- community-x86_64/server-systemd.service	                        (rev 0)
+++ community-x86_64/server-systemd.service	2022-06-18 03:31:24 UTC (rev 1238350)
@@ -0,0 +1,19 @@
+[Unit]
+Description=Woodpecker server
+Documentation=https://woodpecker-ci.org/docs/intro
+Requires=network-online.target
+After=network-online.target
+
+[Service]
+User=woodpecker-server
+Group=woodpecker-server
+EnvironmentFile=/etc/woodpecker/server.env
+ExecStart=/usr/bin/woodpecker-server
+RestartSec=5
+Restart=on-failure
+SyslogIdentifier=woodpecker-server
+WorkingDirectory=/var/lib/woodpecker-server
+ReadWritePaths=/var/lib/woodpecker-server
+
+[Install]
+WantedBy=multi-user.target

Copied: woodpecker/repos/community-x86_64/server-sysusers.conf (from rev 1238349, woodpecker/trunk/server-sysusers.conf)
===================================================================
--- community-x86_64/server-sysusers.conf	                        (rev 0)
+++ community-x86_64/server-sysusers.conf	2022-06-18 03:31:24 UTC (rev 1238350)
@@ -0,0 +1 @@
+u woodpecker-server - "Woodpecker server daemon user" /var/lib/woodpecker-server

Copied: woodpecker/repos/community-x86_64/server-tmpfiles.conf (from rev 1238349, woodpecker/trunk/server-tmpfiles.conf)
===================================================================
--- community-x86_64/server-tmpfiles.conf	                        (rev 0)
+++ community-x86_64/server-tmpfiles.conf	2022-06-18 03:31:24 UTC (rev 1238350)
@@ -0,0 +1 @@
+d /var/lib/woodpecker-server 0750 woodpecker-server woodpecker-server

Copied: woodpecker/repos/community-x86_64/server.env (from rev 1238349, woodpecker/trunk/server.env)
===================================================================
--- community-x86_64/server.env	                        (rev 0)
+++ community-x86_64/server.env	2022-06-18 03:31:24 UTC (rev 1238350)
@@ -0,0 +1,144 @@
+# Note that this is not all of the possible configuration options, just the most likely to be used ones.
+# View all of the administration documentation here: https://woodpecker-ci.org/docs/administration/server-config
+# For integrating with Gitea/Github/Gitlab, look at https://woodpecker-ci.org/docs/administration/vcs/overview
+
+# Configures the logging level. Possible values are trace, debug, info, warn, error, fatal, panic, disabled and empty.
+# Default: empty
+#WOODPECKER_LOG_LEVEL=
+
+# Enable pretty-printed debug output.
+# Default: false
+#WOODPECKER_DEBUG_PRETTY=
+
+# Disable colored debug output.
+# Default: true
+#WOODPECKER_DEBUG_NOCOLOR=
+
+# Server fully qualified url of the user-facing hostname.
+# Default: empty
+# Example: WOODPECKER_HOST=http://woodpecker.example.org
+#WOODPECKER_HOST=
+
+# Configures the HTTP listener port.
+# Default: :8000
+#WOODPECKER_SERVER_ADDR=
+
+# Path to an SSL certificate used by the server to accept HTTPS requests.
+# Default: empty
+# Example: WOODPECKER_SERVER_CERT=/path/to/cert.pem
+#WOODPECKER_SERVER_CERT=
+
+# Path to an SSL certificate key used by the server to accept HTTPS requests.
+# Default: empty
+# Example: WOODPECKER_SERVER_KEY=/path/to/key.pem
+#WOODPECKER_SERVER_KEY=
+
+# Automatically generates an SSL certificate using Let's Encrypt, and configures the server to accept HTTPS requests.
+# Default: false
+#WOODPECKER_LETS_ENCRYPT=
+
+# Configures the gRPC listener port.
+# Default: :9000
+#WOODPECKER_GRPC_ADDR=
+
+# Comma-separated list of admin accounts.
+# Default: empty
+# Example: WOODPECKER_ADMIN=user1,user2
+#WOODPECKER_ADMIN=
+
+# Comma-separated list of approved organizations.
+# Default: empty
+# Example: org1,org2
+#WOODPECKER_ORGS=
+
+# Comma-separated list of syncable repo owners. ???
+# Default: empty
+# Example: user1,user2
+#WOODPECKER_REPO_OWNERS=
+
+# Enable to allow user registration.
+# Default: false
+#WOODPECKER_OPEN=
+
+# Link to documentation in the UI.
+# Default: https://woodpecker-ci.org/
+#WOODPECKER_DOCS=
+
+# Always use authentication to clone repositories even if they are public. Needed if the SCM requires to always authenticate as used by many companies.
+# Default: false
+#WOODPECKER_AUTHENTICATE_PUBLIC_REPOS=
+
+# The default docker image to be used when cloning the repo
+# Default: woodpeckerci/plugin-git:latest
+#WOODPECKER_DEFAULT_CLONE_IMAGE=
+
+# Configures the session expiration time.
+# Default: 72h
+#WOODPECKER_SESSION_EXPIRES=
+
+# Docker images to run in privileged mode. Only change if you are sure what you do!
+# Default: plugins/docker,plugins/gcr,plugins/ecr,woodpeckerci/plugin-docker,woodpeckerci/plugin-docker-buildx
+#WOODPECKER_ESCALATE=
+
+# Configures a specific private registry config for all pipelines.
+# Default: empty
+# Example: WOODPECKER_DOCKER_CONFIG=/home/user/.docker/config.json
+#WOODPECKER_DOCKER_CONFIG=
+
+# A shared secret used by server and agents to authenticate communication. A secret can be generated by openssl rand -hex 32.
+# Default: empty
+#WOODPECKER_AGENT_SECRET=
+
+# Server-side enforcement policy on the minimum amount of time a client should wait before sending a keepalive ping.
+# Default: empty
+# Example: WOODPECKER_KEEPALIVE_MIN_TIME=10s
+#WOODPECKER_KEEPALIVE_MIN_TIME=
+
+# Database configuration documentation can be found here: https://woodpecker-ci.org/docs/administration/database
+# The database driver name. Possible values are sqlite3, mysql or postgres.
+# Default: sqlite3
+#WOODPECKER_DATABASE_DRIVER=
+
+# The database connection string. The default value is the path of the embedded sqlite database file.
+# Default: woodpecker.sqlite
+# MySQL Example:
+# https://github.com/go-sql-driver/mysql#dsn-data-source-name
+# WOODPECKER_DATABASE_DATASOURCE=root:password at tcp(1.2.3.4:3306)/woodpecker?parseTime=true
+# 
+# PostgreSQL Example:
+# https://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-CONNSTRING
+# WOODPECKER_DATABASE_DATASOURCE=postgres://root:password@1.2.3.4:5432/woodpecker?sslmode=disable
+#WOODPECKER_DATABASE_DATASOURCE=
+
+# Token to secure the Prometheus metrics endpoint.
+# Default: empty
+#WOODPECKER_PROMETHEUS_AUTH_TOKEN=
+
+# Context prefix Woodpecker will use to publish status messages to SCM. You probably will only need to change it if you run multiple Woodpecker instances for a single repository.
+# Default: ci/woodpecker
+#WOODPECKER_STATUS_CONTEXT=
+
+# The maximum amount of memory a single pipeline container is allowed to swap to disk, configured in bytes. There is no limit if 0.
+# Default: 0
+#WOODPECKER_LIMIT_MEM_SWAP=
+
+# The maximum amount of memory a single pipeline container can use, configured in bytes. There is no limit if 0.
+# Default: 0
+#WOODPECKER_LIMIT_MEM=
+
+# The maximum amount of memory of /dev/shm allowed in bytes. There is no limit if 0.
+# Default: 0
+#WOODPECKER_LIMIT_SHM_SIZE=
+
+# The number of microseconds per CPU period that the container is limited to before throttled. There is no limit if 0.
+# Default: 0
+#WOODPECKER_LIMIT_CPU_QUOTA=
+
+# The relative weight vs. other containers.
+# Default: 0
+#WOODPECKER_LIMIT_CPU_SHARES=
+
+# Comma-separated list to limit the specific CPUs or cores a pipeline container can use.
+# Default: empty
+# Example: WOODPECKER_LIMIT_CPU_SET=1,2
+#WOODPECKER_LIMIT_CPU_SET=



More information about the arch-commits mailing list