• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jreleaser / jreleaser / #510

27 Jul 2025 12:31PM UTC coverage: 45.783% (-3.6%) from 49.39%
#510

push

github

aalmiray
feat(packagers): Stage distribution publication in a fixed directory

Closes #1943

12 of 25 new or added lines in 4 files covered. (48.0%)

2208 existing lines in 190 files now uncovered.

23924 of 52255 relevant lines covered (45.78%)

0.46 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

66.67
/api/jreleaser-model-api/src/main/java/org/jreleaser/model/api/packagers/DockerConfiguration.java
1
/*
2
 * SPDX-License-Identifier: Apache-2.0
3
 *
4
 * Copyright 2020-2025 The JReleaser authors.
5
 *
6
 * Licensed under the Apache License, Version 2.0 (the "License");
7
 * you may not use this file except in compliance with the License.
8
 * You may obtain a copy of the License at
9
 *
10
 *     https://www.apache.org/licenses/LICENSE-2.0
11
 *
12
 * Unless required by applicable law or agreed to in writing, software
13
 * distributed under the License is distributed on an "AS IS" BASIS,
14
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
 * See the License for the specific language governing permissions and
16
 * limitations under the License.
17
 */
18
package org.jreleaser.model.api.packagers;
19

20
import org.jreleaser.model.api.common.Activatable;
21
import org.jreleaser.model.api.common.Domain;
22
import org.jreleaser.model.api.common.ExtraProperties;
23

24
import java.util.List;
25
import java.util.Locale;
26
import java.util.Map;
27
import java.util.Set;
28

29
import static org.jreleaser.util.StringUtils.isBlank;
30

31
/**
32
 * @author Andres Almiray
33
 * @since 0.4.0
34
 */
35
public interface DockerConfiguration extends Domain, ExtraProperties, Activatable {
36
    String TYPE = "docker";
37

38
    String getTemplateDirectory();
39

40
    List<String> getSkipTemplates();
41

42
    String getBaseImage();
43

44
    String getEntrypoint();
45

46
    String getCmd();
47

48
    Map<String, String> getLabels();
49

50
    Set<String> getImageNames();
51

52
    List<String> getBuildArgs();
53

54
    List<String> getPreCommands();
55

56
    List<String> getPostCommands();
57

58
    Set<? extends Registry> getRegistries();
59

60
    boolean isUseLocalArtifact();
61

62
    DockerCommand getCommand();
63

64
    Buildx getBuildx();
65

66
    enum DockerCommand {
1✔
67
        DOCKER,
1✔
68
        PODMAN;
1✔
69

70
        public static DockerCommand of(String str) {
UNCOV
71
            if (isBlank(str)) return null;
×
UNCOV
72
            return DockerCommand.valueOf(str.toUpperCase(Locale.ENGLISH).trim());
×
73
        }
74

75
        public String formatted() {
76
            return name().toLowerCase(Locale.ENGLISH);
1✔
77
        }
78
    }
79

80
    interface Registry extends Domain, Activatable, Comparable<Registry> {
81
        String getServer();
82

83
        String getServerName();
84

85
        String getRepositoryName();
86

87
        String getUsername();
88

89
        String getPassword();
90

91
        boolean isExternalLogin();
92
    }
93

94
    interface Buildx extends Domain {
95
        boolean isEnabled();
96

97
        boolean isCreateBuilder();
98

99
        List<String> getCreateBuilderFlags();
100

101
        List<String> getPlatforms();
102
    }
103
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc