Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yoomoney/docker-artifact-publish-plugin
Gradle plugin for publication of local Docker images to the registry.
https://github.com/yoomoney/docker-artifact-publish-plugin
backend cicd docker gradle gradle-plugin kotlin publishing
Last synced: 3 months ago
JSON representation
Gradle plugin for publication of local Docker images to the registry.
- Host: GitHub
- URL: https://github.com/yoomoney/docker-artifact-publish-plugin
- Owner: yoomoney
- License: mit
- Archived: true
- Created: 2021-03-22T09:18:45.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-11T13:11:10.000Z (over 2 years ago)
- Last Synced: 2024-09-18T16:40:24.411Z (3 months ago)
- Topics: backend, cicd, docker, gradle, gradle-plugin, kotlin, publishing
- Language: Kotlin
- Homepage:
- Size: 123 KB
- Stars: 0
- Watchers: 17
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.com/yoomoney/docker-artifact-publish-plugin.svg?branch=master)](https://travis-ci.com/yoomoney/docker-artifact-publish-plugin)
[![codecov](https://codecov.io/gh/yoomoney/docker-artifact-publish-plugin/branch/master/graph/badge.svg)](https://codecov.io/gh/yoomoney/docker-artifact-publish-plugin)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)# docker-artifact-publish-plugin
Plugin that allows to publish local docker image to registry depending on gradle project version type.## Features
In order to publish docker image to one of configured registries you should execute `publish` task.Depending on a project version the plugin will publish a local image to one of configured registries:
* snapshotRegistry - for a version ends with `-SNAPSHOT`
* releaseRegistry - for all other versionsAlso, the plugin stores published image id to `version.txt` file.
## Image name format
The plugin requires the name of a local image to be in the following format before publishing: `groupId`/`artifactId`:`project.version`.
Where `groupId` and `artifactId` are values from `dockerArtifactPublish`plugin extension.## How to apply
In order to apply the plugin just add to `build.gradle`:Using legacy plugin application:
```groovy
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'ru.yoomoney.gradle.plugins:docker-artifact-publish-plugin:1.+'
}
}
apply plugin: 'ru.yoomoney.gradle.plugins.docker-artifact-publish-plugin'
```Using the plugin DSL:
```groovy
plugins {
id "ru.yoomoney.gradle.plugins.docker-artifact-publish-plugin" version "1.0.0"
}
```## Configuration example
```groovy
dockerArtifactPublish {
// Release (stable) registry URL needed to push images
releaseRegistry = ""
// Snapshot (testing) registry URL needed to push images
snapshotRegistry = null
// Registry username needed to push images
username = null
// Registry password needed to push images
password = null
// Maintainer email address
email = null
// Artifact name
artifactId = null
// Artifact group
groupId = null
}
```