Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wip: Init Code for Plugin #1

Merged
merged 31 commits into from
Jul 3, 2023
Merged

wip: Init Code for Plugin #1

merged 31 commits into from
Jul 3, 2023

Conversation

nvima
Copy link
Collaborator

@nvima nvima commented Jun 5, 2023

Added 3 Tasks:

  • uploadPackage
  • removePackage
  • cleanPackages
    Added Unit Tests with Mockk for S3
    Added Integration Tests
    Added Readme
    Added Workflow for Testing
    Added Workflow for Plugin Publish

TODO:

  • Add Gradle Plugin Publish Secrets
  • Release Attributes Inputs??

nvima added 9 commits June 5, 2023 14:35
renamed updateRepo to uploadDebian
-> added name and version parameter to override version and packagename
from debian file and for future clean task specification
added origin + label input param for Release File
added CleanPackages Step
  > added component and suite input param for that (has default
  stable/main value)
removed unused parameter from tasks
fixed Date Field
 -> CEST Date gives apt error
fixed poolbucketkey function:
  >the key must have component and not suite
added deleteObjects function to s3Client
This commit refactors the code to include additional APT repository metadata configuration options. The following changes were made:

In S3AptRepositoryPlugin.kt, the properties origin, label, suite, and component were added to the PluginExtension class and set to the corresponding values from the extension.
In RemovePackageTask.kt and UploadPackageTask.kt, the properties origin, label, suite, and component were added as inputs and assigned values based on the extension or the default values if not provided.
These additions allow users to customize the APT repository origin, label, suite, and component. The values can be set at the top level for the entire repository or overridden individually for specific Debian files or packages. The new properties are optional, allowing flexibility in the repository configuration.

Note: The origin, label, suite, and component properties have been introduced to provide enhanced customization options for the APT repository. Refer to the updated documentation for more details on how to use these properties effectively.
build.gradle.kts Outdated Show resolved Hide resolved
build.gradle.kts Outdated Show resolved Hide resolved
src/main/kotlin/com/liftric/apt/extensions/Plugin.kt Outdated Show resolved Hide resolved
nvima added 3 commits June 15, 2023 17:29
in the next step i add release file field attributes and one of them are
architecture. for this i have to rename the architecture attribute from
the package to packageArchitecture.
This is also good, because all other package Attributes starting with
package... (packageName, packageVersion)
added release file attributes
 - added test for this
added comments
rename some stuff
@Khartris
Copy link
Member

LGTM

Copy link
Member

@Ingwersaft Ingwersaft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Ingwersaft Ingwersaft merged commit b9380dc into main Jul 3, 2023
1 check passed
@Ingwersaft Ingwersaft deleted the wip/init-code branch July 3, 2023 04:59
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.

None yet

3 participants