Skip to content

Commit fa2eb91

Browse files
authored
chore(ci): specify environment using provided field (#1460)
1 parent 06c168f commit fa2eb91

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/bindings-server.main.kts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import io.github.typesafegithub.workflows.actions.actions.Checkout
1010
import io.github.typesafegithub.workflows.actions.gradle.ActionsSetupGradle
1111
import io.github.typesafegithub.workflows.annotations.ExperimentalKotlinLogicStep
12+
import io.github.typesafegithub.workflows.domain.Environment
1213
import io.github.typesafegithub.workflows.domain.RunnerType.UbuntuLatest
1314
import io.github.typesafegithub.workflows.domain.triggers.PullRequest
1415
import io.github.typesafegithub.workflows.domain.triggers.Push
@@ -103,9 +104,7 @@ workflow(
103104
"DOCKERHUB_USERNAME" to expr { DOCKERHUB_USERNAME },
104105
"DOCKERHUB_PASSWORD" to expr { DOCKERHUB_PASSWORD },
105106
),
106-
_customArguments = mapOf(
107-
"environment" to "DockerHub",
108-
)
107+
environment = Environment(name = "DockerHub"),
109108
) {
110109
uses(action = Checkout())
111110
uses(action = ActionsSetupGradle())

.github/workflows/bindings-server.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ jobs:
6363
DOCKERHUB_USERNAME: '${{ secrets.DOCKERHUB_USERNAME }}'
6464
DOCKERHUB_PASSWORD: '${{ secrets.DOCKERHUB_PASSWORD }}'
6565
if: '${{ github.event_name == ''push'' }}'
66-
environment: 'DockerHub'
66+
environment:
67+
name: 'DockerHub'
6768
steps:
6869
- id: 'step-0'
6970
uses: 'actions/checkout@v4'

0 commit comments

Comments
 (0)