mirror of
https://github.com/nikdoof/cups-avahi-airprint.git
synced 2025-12-10 17:42:17 +00:00
Cleanup and configure for Github building
This commit is contained in:
38
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
38
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
---
|
||||
name: Bug report
|
||||
about: Create a report to help us improve
|
||||
title: ''
|
||||
labels: ''
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
**Describe the bug**
|
||||
A clear and concise description of what the bug is.
|
||||
|
||||
**To Reproduce**
|
||||
Steps to reproduce the behavior:
|
||||
1. Go to '...'
|
||||
2. Click on '....'
|
||||
3. Scroll down to '....'
|
||||
4. See error
|
||||
|
||||
**Expected behavior**
|
||||
A clear and concise description of what you expected to happen.
|
||||
|
||||
**Screenshots**
|
||||
If applicable, add screenshots to help explain your problem.
|
||||
|
||||
**Desktop (please complete the following information):**
|
||||
- OS: [e.g. iOS]
|
||||
- Browser [e.g. chrome, safari]
|
||||
- Version [e.g. 22]
|
||||
|
||||
**Smartphone (please complete the following information):**
|
||||
- Device: [e.g. iPhone6]
|
||||
- OS: [e.g. iOS8.1]
|
||||
- Browser [e.g. stock browser, safari]
|
||||
- Version [e.g. 22]
|
||||
|
||||
**Additional context**
|
||||
Add any other context about the problem here.
|
||||
20
.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
20
.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
name: Feature request
|
||||
about: Suggest an idea for this project
|
||||
title: ''
|
||||
labels: ''
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
**Is your feature request related to a problem? Please describe.**
|
||||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
||||
|
||||
**Describe the solution you'd like**
|
||||
A clear and concise description of what you want to happen.
|
||||
|
||||
**Describe alternatives you've considered**
|
||||
A clear and concise description of any alternative solutions or features you've considered.
|
||||
|
||||
**Additional context**
|
||||
Add any other context or screenshots about the feature request here.
|
||||
5
.github/renovate.json
vendored
Normal file
5
.github/renovate.json
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"extends": [
|
||||
"config:base"
|
||||
]
|
||||
}
|
||||
33
.github/workflows/build-container.yaml
vendored
Normal file
33
.github/workflows/build-container.yaml
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
name: Build Container
|
||||
|
||||
"on":
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
tags:
|
||||
- "[0-9]+.[0-9]+.[0-9]+"
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Login to GHCR
|
||||
uses: docker/login-action@v3
|
||||
if: github.event_name != 'pull_request'
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Build and push
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
push: true
|
||||
platforms: linux/amd64,linux/arm64
|
||||
tags: |
|
||||
ghcr.io/${{ github.repository_owner }}/cups-avahi-airprint:${{ github.ref_name }}
|
||||
ghcr.io/${{ github.repository_owner }}/cups-avahi-airprint:latest
|
||||
@@ -1,11 +1,6 @@
|
||||
# chuckcharlie/cups-avahi-airprint
|
||||
# cups-avahi-airprint
|
||||
|
||||
Fork from [quadportnick/docker-cups-airprint](https://github.com/quadportnick/docker-cups-airprint)
|
||||
|
||||
### Now supports ARM64 and AMD64!
|
||||
Use the *latest* or *version#* tags to auto choose the right architecture.
|
||||
|
||||
This Alpine-based Docker image runs a CUPS instance that is meant as an AirPrint relay for printers that are already on the network but not AirPrint capable. The other images out there never seemed to work right. I forked the original to use Alpine instead of Ubuntu and work on more host OS's.
|
||||
Fork from [chuckcharlie/cups-avahi-airprint](), which was a fork of [quadportnick/docker-cups-airprint](https://github.com/quadportnick/docker-cups-airprint)
|
||||
|
||||
## Configuration
|
||||
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
version: 0.2
|
||||
#Buildspec file for AWS Codebuild
|
||||
#Generates multi-arch manifest
|
||||
|
||||
env:
|
||||
secrets-manager:
|
||||
DOCKERHUB_PASS: "/dockerhub/credentials:password"
|
||||
DOCKERHUB_USERNAME: "/dockerhub/credentials:username"
|
||||
phases:
|
||||
install:
|
||||
commands:
|
||||
- yum update -y
|
||||
pre_build:
|
||||
commands:
|
||||
- echo Logging in to DOCKER...
|
||||
- docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASS
|
||||
build:
|
||||
commands:
|
||||
- echo Build started on `date`
|
||||
- echo Building the Docker manifest...
|
||||
- VERSION=$(cat version.txt)
|
||||
- export DOCKER_CLI_EXPERIMENTAL=enabled
|
||||
- docker manifest create $DOCKERHUB_USERNAME/$IMAGE_REPO_NAME:$VERSION $DOCKERHUB_USERNAME/$IMAGE_REPO_NAME:$VERSION-arm64 $DOCKERHUB_USERNAME/$IMAGE_REPO_NAME:$VERSION-amd64
|
||||
- docker manifest annotate --arch arm64 $DOCKERHUB_USERNAME/$IMAGE_REPO_NAME:$VERSION $DOCKERHUB_USERNAME/$IMAGE_REPO_NAME:$VERSION-arm64
|
||||
- docker manifest annotate --arch amd64 $DOCKERHUB_USERNAME/$IMAGE_REPO_NAME:$VERSION $DOCKERHUB_USERNAME/$IMAGE_REPO_NAME:$VERSION-amd64
|
||||
- docker manifest create $DOCKERHUB_USERNAME/$IMAGE_REPO_NAME:latest $DOCKERHUB_USERNAME/$IMAGE_REPO_NAME:$VERSION-arm64 $DOCKERHUB_USERNAME/$IMAGE_REPO_NAME:$VERSION-amd64
|
||||
- docker manifest annotate --arch arm64 $DOCKERHUB_USERNAME/$IMAGE_REPO_NAME:$VERSION $DOCKERHUB_USERNAME/$IMAGE_REPO_NAME:$VERSION-arm64
|
||||
- docker manifest annotate --arch amd64 $DOCKERHUB_USERNAME/$IMAGE_REPO_NAME:$VERSION $DOCKERHUB_USERNAME/$IMAGE_REPO_NAME:$VERSION-amd64
|
||||
|
||||
post_build:
|
||||
commands:
|
||||
- echo Build completed on `date`
|
||||
- echo Pushing the Docker image...
|
||||
- docker manifest push $DOCKERHUB_USERNAME/$IMAGE_REPO_NAME:$VERSION
|
||||
- docker manifest push $DOCKERHUB_USERNAME/$IMAGE_REPO_NAME:latest
|
||||
@@ -1,26 +0,0 @@
|
||||
version: 0.2
|
||||
#Generic buildspec file for AWS Codebuild
|
||||
#Works for both ARM and AMD builds
|
||||
env:
|
||||
secrets-manager:
|
||||
DOCKERHUB_PASS: "/dockerhub/credentials:password"
|
||||
DOCKERHUB_USERNAME: "/dockerhub/credentials:username"
|
||||
phases:
|
||||
install:
|
||||
commands:
|
||||
- yum update -y
|
||||
pre_build:
|
||||
commands:
|
||||
- echo Logging in to DOCKER...
|
||||
- docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASS
|
||||
build:
|
||||
commands:
|
||||
- echo Build started on `date`
|
||||
- echo Building the Docker image...
|
||||
- VERSION=$(cat version.txt)
|
||||
- docker build -t $DOCKERHUB_USERNAME/$IMAGE_REPO_NAME:$VERSION-$ARCH -t $DOCKERHUB_USERNAME/$IMAGE_REPO_NAME:$IMAGE_TAG-$ARCH .
|
||||
post_build:
|
||||
commands:
|
||||
- echo Build completed on `date`
|
||||
- echo Pushing the Docker image...
|
||||
- docker push $DOCKERHUB_USERNAME/$IMAGE_REPO_NAME --all-tags
|
||||
@@ -1,15 +0,0 @@
|
||||
version: '3.5'
|
||||
|
||||
services:
|
||||
cups:
|
||||
container_name: cups
|
||||
image: chuckcharlie/cups-avahi-airprint
|
||||
#build: .
|
||||
restart: always
|
||||
network_mode: "host"
|
||||
environment:
|
||||
CUPSADMIN: cups
|
||||
CUPSPASSWORD: cups
|
||||
volumes:
|
||||
- "./services:/services"
|
||||
- "./config:/config"
|
||||
@@ -1 +0,0 @@
|
||||
1.2.1
|
||||
Reference in New Issue
Block a user