https://github.com/brennerm/apt-repo-resource
Concourse CI resource for packages in APT repos
https://github.com/brennerm/apt-repo-resource
apt apt-repository concourse concourse-ci concourse-resource
Last synced: about 1 year ago
JSON representation
Concourse CI resource for packages in APT repos
- Host: GitHub
- URL: https://github.com/brennerm/apt-repo-resource
- Owner: brennerm
- Created: 2018-07-15T20:11:31.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-05-11T17:55:36.000Z (about 5 years ago)
- Last Synced: 2025-03-30T21:41:29.548Z (over 1 year ago)
- Topics: apt, apt-repository, concourse, concourse-ci, concourse-resource
- Language: Python
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Concourse CI APT repository resource
This Concourse CI resource will check for updated versions of a package in an APT repository.
## Usage
The source is configured as follows:
- repositories: list of repositories in sources.list format, e.g. "deb http://archive.ubuntu.com/ubuntu xenial main"
- package: name of the package to query for new versions
The resource will provide at least the following two files:
- $resource_dir/package: contains the name of the package
- $resource_dir/version: contains the version of the package
If the parameter "download_deb" is set to True the .deb file will be available as well.
It's name can be found in "$resource_dir/filename".
## Example
```yaml
resource_types:
- name: apt-package
type: docker-image
source:
repository: brennerm/apt-repo-resource
tag: latest
resources:
- name: gitlab-deploy
type: git
source:
uri: git@gitlab.company.com:ansible/gitlab-deploy.git
- name: gitlab-package
type: apt-package
source:
repositories:
- deb https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ xenial main
package: gitlab-ce
jobs:
- plan:
- get: docker-package-xenial
trigger: true
- get: gitlab-deploy
- task: deploy gitlab
config:
image_resource:
type: docker-image
source:
repository: ansible
tag: latest
platform: linux
inputs:
- name: gitlab-deploy
- name: gitlab-package
run:
path: /bin/bash
args:
- -c
- |
cd gitlab-deploy
ansible-playbook -e "version=$(cat ../gitlab-package/version)" gitlab.yml
```