Skip to content

brennerm/apt-repo-resource

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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

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

About

Concourse CI resource for packages in APT repos

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy