Skip to content

Commit 05767c3

Browse files
authored
feat(actions): add Azure/docker-login@v2 (#1487)
Closes #1477.
1 parent 7f0e076 commit 05767c3

File tree

5 files changed

+89
-2
lines changed

5 files changed

+89
-2
lines changed

actions/Azure/docker-login/v2/action

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
15c4aadf093404726ab2ff205b2cdd33fa6d054c

docs/supported-actions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Click on a version to see the binding's code.
4141
* axel-op
4242
* [googlejavaformat-action](https://github.com/axel-op/googlejavaformat-action) - v3: [`GooglejavaformatActionV3`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/axelop/GooglejavaformatActionV3.kt)
4343
* Azure
44-
* [docker-login](https://github.com/Azure/docker-login) - v1: [`DockerLoginV1`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/azure/DockerLoginV1.kt)
44+
* [docker-login](https://github.com/Azure/docker-login) - v1: [`DockerLoginV1`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/azure/DockerLoginV1.kt), v2: [`DockerLoginV2`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/azure/DockerLoginV2.kt)
4545
* [login](https://github.com/Azure/login) - v1: [`LoginV1`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/azure/LoginV1.kt), v2: [`LoginV2`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/azure/LoginV2.kt)
4646
* [webapps-deploy](https://github.com/Azure/webapps-deploy) - v2: [`WebappsDeployV2`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/azure/WebappsDeployV2.kt), v3: [`WebappsDeployV3`](https://github.com/typesafegithub/github-workflows-kt/blob/v[[ version ]]/github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/azure/WebappsDeployV3.kt)
4747
* bahmutov
@@ -141,6 +141,6 @@ Click on a version to see the binding's code.
141141
Number of bindings available:
142142

143143
* counting by actions: 85
144-
* counting each version separately: 166
144+
* counting each version separately: 167
145145

146146
Actions [providing typings](https://github.com/typesafegithub/github-actions-typing/) (marked with ✅ on the above list): 18

github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/azure/DockerLoginV1.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44
@file:Suppress(
55
"DataClassPrivateConstructor",
66
"UNUSED_PARAMETER",
7+
"DEPRECATION",
78
)
89

910
package io.github.typesafegithub.workflows.actions.azure
1011

1112
import io.github.typesafegithub.workflows.domain.actions.Action
1213
import io.github.typesafegithub.workflows.domain.actions.RegularAction
1314
import java.util.LinkedHashMap
15+
import kotlin.Deprecated
1416
import kotlin.String
1517
import kotlin.Suppress
1618
import kotlin.Unit
@@ -33,6 +35,10 @@ import kotlin.collections.toTypedArray
3335
* @param _customVersion Allows overriding action's version, for example to use a specific minor
3436
* version, or a newer version that the binding doesn't yet know about
3537
*/
38+
@Deprecated(
39+
message = "This action has a newer major version: DockerLoginV2",
40+
replaceWith = ReplaceWith("DockerLoginV2"),
41+
)
3642
public data class DockerLoginV1 private constructor(
3743
/**
3844
* Container registry username
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
// This file was generated using action-binding-generator. Don't change it by hand, otherwise your
2+
// changes will be overwritten with the next binding code regeneration.
3+
// See https://github.com/typesafegithub/github-workflows-kt for more info.
4+
@file:Suppress(
5+
"DataClassPrivateConstructor",
6+
"UNUSED_PARAMETER",
7+
)
8+
9+
package io.github.typesafegithub.workflows.actions.azure
10+
11+
import io.github.typesafegithub.workflows.domain.actions.Action
12+
import io.github.typesafegithub.workflows.domain.actions.RegularAction
13+
import java.util.LinkedHashMap
14+
import kotlin.String
15+
import kotlin.Suppress
16+
import kotlin.Unit
17+
import kotlin.collections.Map
18+
import kotlin.collections.toList
19+
import kotlin.collections.toTypedArray
20+
21+
/**
22+
* Action: Azure Container Registry Login
23+
*
24+
* Log in to Azure Container Registry (ACR) or any private container registry
25+
*
26+
* [Action on GitHub](https://github.com/Azure/docker-login)
27+
*
28+
* @param username Container registry username
29+
* @param password Container registry password
30+
* @param loginServer Container registry server url
31+
* @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by
32+
* the binding
33+
* @param _customVersion Allows overriding action's version, for example to use a specific minor
34+
* version, or a newer version that the binding doesn't yet know about
35+
*/
36+
public data class DockerLoginV2 private constructor(
37+
/**
38+
* Container registry username
39+
*/
40+
public val username: String? = null,
41+
/**
42+
* Container registry password
43+
*/
44+
public val password: String? = null,
45+
/**
46+
* Container registry server url
47+
*/
48+
public val loginServer: String? = null,
49+
/**
50+
* Type-unsafe map where you can put any inputs that are not yet supported by the binding
51+
*/
52+
public val _customInputs: Map<String, String> = mapOf(),
53+
/**
54+
* Allows overriding action's version, for example to use a specific minor version, or a newer
55+
* version that the binding doesn't yet know about
56+
*/
57+
public val _customVersion: String? = null,
58+
) : RegularAction<Action.Outputs>("Azure", "docker-login", _customVersion ?: "v2") {
59+
public constructor(
60+
vararg pleaseUseNamedArguments: Unit,
61+
username: String? = null,
62+
password: String? = null,
63+
loginServer: String? = null,
64+
_customInputs: Map<String, String> = mapOf(),
65+
_customVersion: String? = null,
66+
) : this(username=username, password=password, loginServer=loginServer,
67+
_customInputs=_customInputs, _customVersion=_customVersion)
68+
69+
@Suppress("SpreadOperator")
70+
override fun toYamlArguments(): LinkedHashMap<String, String> = linkedMapOf(
71+
*listOfNotNull(
72+
username?.let { "username" to it },
73+
password?.let { "password" to it },
74+
loginServer?.let { "login-server" to it },
75+
*_customInputs.toList().toTypedArray(),
76+
).toTypedArray()
77+
)
78+
79+
override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId)
80+
}

0 commit comments

Comments
 (0)