forked from iteratec/semantic-release-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(plugin): Add ability to push multiple docker images
This feature allows specifying the plugin multiple times in order to push multiple images to a docker repository. iteratec#4
- Loading branch information
1 parent
d9b787c
commit 96850c9
Showing
21 changed files
with
844 additions
and
223 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,5 @@ node_modules | |
dist | ||
|
||
*.log | ||
|
||
develop.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
FROM scratch | ||
ARG TEST |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
jobs: | ||
- job: Build | ||
pool: | ||
name: Hosted Ubuntu 1604 | ||
demands: npm | ||
steps: | ||
- task: NodeTool@0 | ||
displayName: "Use Node 10" | ||
inputs: | ||
versionSpec: 10.x | ||
- task: Npm@1 | ||
displayName: "Install dependencies" | ||
inputs: | ||
verbose: false | ||
- task: Npm@1 | ||
displayName: Build | ||
inputs: | ||
command: custom | ||
customCommand: run build | ||
- task: Npm@1 | ||
displayName: Test | ||
inputs: | ||
command: custom | ||
customCommand: run test | ||
- script: | | ||
npm run release | ||
displayName: Publish | ||
env: | ||
NPM_TOKEN: $(NPMTOKEN) | ||
GITHUB_TOKEN: $(GITHUBTOKEN) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { DockerPluginConfig } from './dockerPluginConfig'; | ||
|
||
export interface PluginSettings { | ||
path: '@iteratec/semantic-release-docker'; | ||
defaultValues: DockerPluginConfig; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { Credentials } from './credentials'; | ||
|
||
/** | ||
* Authentication | ||
* From: https://docs.docker.com/engine/api/v1.37/#section/Authentication | ||
*/ | ||
export interface Authentication extends Credentials { | ||
serveraddress: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export interface Credentials { | ||
username: string; | ||
password: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { SemanticReleasePlugin } from "semantic-release"; | ||
export interface DockerPluginConfig extends SemanticReleasePlugin { | ||
additionalTags?: string[]; | ||
imageName: string; | ||
registryUrl?: string; | ||
repositoryName?: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export { Authentication } from './authentication'; | ||
export { DockerPluginConfig } from './dockerPluginConfig'; | ||
export { Credentials } from './credentials'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { PluginSettings } from "./models/PluginSettings"; | ||
|
||
export const pluginSettings: PluginSettings = { | ||
path: "@iteratec/semantic-release-docker", | ||
defaultValues: { | ||
additionalTags: [], | ||
imageName: "", | ||
path: "@iteratec/semantic-release-docker", | ||
registryUrl: "", | ||
repositoryName: "" | ||
} | ||
}; |
Oops, something went wrong.