Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devmatic-it/debrepo-action
GitHub action to create a private Debian package repository hosted on Github pages.
https://github.com/devmatic-it/debrepo-action
debian debian-packages github-action github-page repository
Last synced: 6 days ago
JSON representation
GitHub action to create a private Debian package repository hosted on Github pages.
- Host: GitHub
- URL: https://github.com/devmatic-it/debrepo-action
- Owner: devmatic-it
- License: apache-2.0
- Created: 2019-12-05T15:44:48.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-13T08:09:15.000Z (about 5 years ago)
- Last Synced: 2024-11-04T07:42:33.179Z (about 2 months ago)
- Topics: debian, debian-packages, github-action, github-page, repository
- Language: Shell
- Homepage:
- Size: 2.11 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Authors: AUTHORS
Awesome Lists containing this project
README
# Debrepo Github action
This action creates a private Debian Repository using Github pages.
## Evironment Variables
### `GITHUB_TOKEN`
**Required** GitHub OAUTH2 TOKEN, should be set to ${{secrets.GITHUB_TOKEN}}
### REPOSITORY
**Required** path in the master branch where to store the GitHub pages. It is recommended to use the following path './docs/debian'
### `NAME`
**Required** name of the debian package, for example 'debcvescan'
### `ARCH`
**Required** CPU architecture to use, for example 'amd64'
### `OS`
**Required** Operating system to use, for example 'linux'
### `CODENAME`
**Required** Debian release code name for example 'buster'
### `PRIVATE_KEY`
**Required** Private GPG key used to sign the Debian packages exported with empty password
### `PUBLIC_KEY`
**Required** Public GPG key used to sign the Debian packages
## Create and distribute GPG keys
1. Create private key without password `gpg --gen-key`
2. Export key without password `gpg –output PUBLIC.KEY –armor –export `
3. Export private key: `gpg –output PRIVATE.KEY –armor –export-secret-key `
4. Create GitHub secrets `PUBLIC_KEY` and paste content of PUBLIC.KEY file. See details in
5. Create GitHub secrets `PRIVATE_KEY` and paste content of PRIVATE.KEY file. See details in## Example usage
```yaml
name: DebianRepository
on: [push]jobs:
release:
name: Release on GitHub
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v1
- name: Create Debian repository test
uses: ./
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
PRIVATE_KEY: ${{secrets.PRIVATE_KEY}}
PUBLIC_KEY: ${{secrets.PUBLIC_KEY}}
REPOSITORY: './docs/debian'
NAME: 'debcvescan'
ARCH: 'amd64'
OS: 'linux'
CODENAME: 'buster'
```## Credits
- Creating GutHub Actions with Docker
- article
- Wiki