Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -803,12 +803,12 @@ non-idempotent targets, not for the Docker target.

**Configuration**

| Option | Description |
| -------------- | -------------------------------------------------------------------- |
| `source` | Path to the source Docker image to be pulled |
| `sourceFormat` | Format for the source image name. Default: `{{source}}:{{revision}}` |
| `target` | Path to the target Docker image to be pushed |
| `targetFormat` | Format for the target image name. Default: `{{target}}:{{version}}` |
| Option | Description |
| -------------- | ------------------------------------------------------------------------ |
| `source` | Path to the source Docker image to be pulled |
| `sourceFormat` | Format for the source image name. Default: `{{{source}}}:{{{revision}}}` |
| `target` | Path to the target Docker image to be pushed |
| `targetFormat` | Format for the target image name. Default: `{{{target}}}:{{{version}}}` |

**Example**

Expand Down
8 changes: 4 additions & 4 deletions src/targets/docker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ export interface DockerTargetOptions extends TargetConfig {
password: string;
/** Source image path, like `us.gcr.io/sentryio/craft` */
source: string;
/** Full name template for the source image path, defaults to `{{source}}:{{revision}}` */
/** Full name template for the source image path, defaults to `{{{source}}}:{{{revision}}}` */
sourceTemplate: string;
/** Full name template for the target image path, defaults to `{{target}}:{{version}}` */
/** Full name template for the target image path, defaults to `{{{target}}}:{{{version}}}` */
targetTemplate: string;
/** Target image path, like `getsentry/craft` */
target: string;
Expand Down Expand Up @@ -65,8 +65,8 @@ export class DockerTarget extends BaseTarget {
password: process.env.DOCKER_PASSWORD,
source: this.config.source,
target: this.config.target,
sourceTemplate: this.config.sourceFormat || '{{source}}:{{revision}}',
targetTemplate: this.config.targetFormat || '{{target}}:{{version}}',
sourceTemplate: this.config.sourceFormat || '{{{source}}}:{{{revision}}}',
targetTemplate: this.config.targetFormat || '{{{target}}}:{{{version}}}',
username: process.env.DOCKER_USERNAME,
};
}
Expand Down