Skip to content

Conversation

@rudra-iitm
Copy link
Contributor

This PR introduces the necessary code and configurations to build and deploy the OCI image of ghostscript-printer-app using Rockcraft. Below are the key highlights and updates:

Key Changes

  • Rockcraft Configuration:
    Added a rockcraft.yaml file containing all the configurations required to build the rock for ghostscript-printer-app.

  • GitHub Workflows:
    Introduced workflows to build and publish Docker images and GitHub packages.
    Introduced CI to build test snap and rock packages
    Note: Publishing to Docker Hub is currently commented out until OpenPrinting's Docker Hub setup is finalized.

  • Auto-Update Enhancements:
    Updated the auto-update.yml workflow to include the latest changes Add Argument to Specify YAML File Path ubuntu/desktop-snaps#813 from the desktop/snap repository.
    This update enables support for specifying a path to the YAML file that needs to be updated.

rudra-iitm and others added 11 commits August 12, 2024 17:53
- Added parts:
  - pappl
  - pappl-retrofit
  - qpdf
  - ghostscript
  - cups
  - libcupsfilters
  - libppd
  - cups-filters
  - pyppd
  - foomatic-db
  - hplip
  - c2050
  - min12xxw
  - pnm2ppa
  - c2esp
  - dymo-cups-drivers
  - foo2zjs
  - fxlinuxprint
  - m2300w
  - printer-driver-oki
  - pxljr
  - rastertosag-gdi
  - splix
  - brlaser
  - ptouch-driver
  - ghostscript-printer-app
  - scripts
  - avahi-daemon

- Added service to start dbus-daemon and start ghostscript-printer-app server

- Included scripts:
  - Scripts to start dbus-daemon
  - Makefiles and scripts to build ghostscript-printer-app
…rporates an automated rock versioning system.

- In the workflow file .github/workflows/auto-update.yml, we add the parameter "rock-version-schema: '^ghostpdl-(\d+\.\d+\.\d+)' to the call of the GitHub action. This instructs the action to perform versioning automation and specifies the format of the upstream release tags and the upstream version number in them.
- We add "adopt-info: ghostscript" even with all metadata fields in rockcraft.yaml. This tells the GitHub action which part is the supplier of the upstream version number.

Add GitHub Action to Push Image to Docker Registry
- Added registry-actions.yml to automate pushing Docker images to the Docker registry.
- Utilized craft-action/rockcraft-pack from Canonical to pack the rock.
- Integrated docker/login-action for seamless authentication to Docker Hub within the GitHub Actions workflow.
- Configured the workflow to pack rock as a Docker image using Skopeo.
@tillkamppeter tillkamppeter merged commit fbdbc79 into OpenPrinting:master Dec 15, 2024
2 checks passed
@rudra-iitm rudra-iitm deleted the merge-rock branch February 20, 2025 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants