Commit 59182b88 authored by Guido Gunther's avatar Guido Gunther
Browse files

jenkins: Add aplty scratch repo for Debian builds

parent 3cf89663
......@@ -14,6 +14,7 @@
- libssl-dev
base_pkgs:
- molly-guard
jenkins_home: "/var/lib/jenkins"
roles:
- role: geerlingguy.jenkins
jenkins_package_state: latest # allow upgrades
......@@ -45,6 +46,14 @@
foreign: true
tags:
- gbp
- role: scratchrepo
tags:
- scratchrepo
aptly_user:
name: jenkins
home: "{{ jenkins_home }}"
aptly_root_dir: /DATA/aptly/
tasks:
- name: Configure Jenkins master-slave security
copy:
......
# Repository for Debian scratch builds
- include: "params.yml"
- name: Ensure aptly
apt:
name: aptly
- name: Ensure aptly configuration
template:
src: templates/aptly.conf.j2
dest: "{{ aptly_user.home }}/.aptly.conf"
owner: "{{ aptly_user.name }}"
- name: Ensure aptly repo dir
file:
name: "{{ aptly_root_dir }}"
owner: "{{ aptly_user.name }}"
state: directory
- name: Ensure aptly repo
command: aptly repo create --distribution=scratch --component=librem5 scratch
args:
creates: "{{ aptly_root_dir }}/db/LOG"
become: yes
become_user: "{{ aptly_user.name }}"
- name: Ensure aptly repo is initially published
command: aptly publish repo --architectures=arm64,armhf,amd64,all,source scratch
args:
creates: "{{ aptly_root_dir }}/public/dists/scratch/"
become: yes
become_user: "{{ aptly_user.name }}"
- name: Check params
assert:
that:
- "aptly_root_dir is defined"
- "aptly_user is defined"
\ No newline at end of file
{
"rootDir": "{{ aptly_root_dir }}",
"downloadConcurrency": 4,
"downloadSpeedLimit": 0,
"architectures": [],
"dependencyFollowSuggests": false,
"dependencyFollowRecommends": false,
"dependencyFollowAllVariants": false,
"dependencyFollowSource": false,
"dependencyVerboseResolve": false,
"gpgDisableSign": true,
"gpgDisableVerify": false,
"gpgProvider": "gpg",
"downloadSourcePackages": false,
"skipLegacyPool": true,
"ppaDistributorID": "ubuntu",
"ppaCodename": "",
"skipContentsPublishing": false,
"FileSystemPublishEndpoints": {},
"S3PublishEndpoints": {},
"SwiftPublishEndpoints": {}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment