Skip to content

Commit 6da50d9

Browse files
committed
ci: fix Docker workflow
Previously we used credentials owned by an individual. Switch to using the cueckoo user; at the same time use a more descriptive name for the secret variable. Signed-off-by: Paul Jolly <[email protected]> Change-Id: Ib15f0bc2f955841f51c096b76a7aaed4bf66e29a Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/520527 TryBot-Result: CUEcueckoo <[email protected]> Unity-Result: CUEcueckoo <[email protected]>
1 parent 06484a3 commit 6da50d9

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ jobs:
4848
with:
4949
tags: ${{ env.CUE_VERSION }},latest
5050
repository: cue-lang/cue
51-
username: ${{ secrets.DOCKER_USERNAME }}
52-
password: ${{ secrets.DOCKER_PASSWORD }}
51+
username: cueckoo
52+
password: ${{ secrets.CUECKOO_DOCKER_PAT }}
5353
tag_with_ref: false
5454
tag_with_sha: false
5555
target: cue

cmd/cue/cmd/testdata/script/cmd_github.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ jobs:
122122
with:
123123
tags: ${{ env.CUE_VERSION }},latest
124124
repository: cue-lang/cue
125-
username: ${{ secrets.DOCKER_USERNAME }}
126-
password: ${{ secrets.DOCKER_PASSWORD }}
125+
username: cueckoo
126+
password: ${{ secrets.CUECKOO_DOCKER_PAT }}
127127
tag_with_ref: false
128128
tag_with_sha: false
129129
target: cue
@@ -1318,8 +1318,8 @@ release: _#bashWorkflow & {
13181318
with: {
13191319
tags: "${{ env.CUE_VERSION }},latest"
13201320
repository: "cue-lang/cue"
1321-
username: "${{ secrets.DOCKER_USERNAME }}"
1322-
password: "${{ secrets.DOCKER_PASSWORD }}"
1321+
username: "cueckoo"
1322+
password: "${{ secrets.CUECKOO_DOCKER_PAT }}"
13231323
tag_with_ref: false
13241324
tag_with_sha: false
13251325
target: "cue"

cue/testdata/eval/github.txtar

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ release: _#bashWorkflow & {
201201
with: {
202202
tags: "${{ env.CUE_VERSION }},latest"
203203
repository: "cue-lang/cue"
204-
username: "${{ secrets.DOCKER_USERNAME }}"
205-
password: "${{ secrets.DOCKER_PASSWORD }}"
204+
username: "cueckoo"
205+
password: "${{ secrets.CUECKOO_DOCKER_PAT }}"
206206
tag_with_ref: false
207207
tag_with_sha: false
208208
target: "cue"
@@ -1449,8 +1449,8 @@ import "strings"
14491449
with: (#struct){
14501450
tags: (string){ "${{ env.CUE_VERSION }},latest" }
14511451
repository: (string){ "cue-lang/cue" }
1452-
username: (string){ "${{ secrets.DOCKER_USERNAME }}" }
1453-
password: (string){ "${{ secrets.DOCKER_PASSWORD }}" }
1452+
username: (string){ "cueckoo" }
1453+
password: (string){ "${{ secrets.CUECKOO_DOCKER_PAT }}" }
14541454
tag_with_ref: (bool){ false }
14551455
tag_with_sha: (bool){ false }
14561456
target: (string){ "cue" }
@@ -2013,8 +2013,8 @@ import "strings"
20132013
with: (#struct){
20142014
tags: (string){ "${{ env.CUE_VERSION }},latest" }
20152015
repository: (string){ "cue-lang/cue" }
2016-
username: (string){ "${{ secrets.DOCKER_USERNAME }}" }
2017-
password: (string){ "${{ secrets.DOCKER_PASSWORD }}" }
2016+
username: (string){ "cueckoo" }
2017+
password: (string){ "${{ secrets.CUECKOO_DOCKER_PAT }}" }
20182018
tag_with_ref: (bool){ false }
20192019
tag_with_sha: (bool){ false }
20202020
target: (string){ "cue" }
@@ -2573,8 +2573,8 @@ import "strings"
25732573
with: {
25742574
tags: "${{ env.CUE_VERSION }},latest"
25752575
repository: "cue-lang/cue"
2576-
username: "${{ secrets.DOCKER_USERNAME }}"
2577-
password: "${{ secrets.DOCKER_PASSWORD }}"
2576+
username: "cueckoo"
2577+
password: "${{ secrets.CUECKOO_DOCKER_PAT }}"
25782578
tag_with_ref: false
25792579
tag_with_sha: false
25802580
target: "cue"

internal/ci/workflows.cue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,8 @@ release: _#bashWorkflow & {
268268
with: {
269269
tags: "${{ env.CUE_VERSION }},latest"
270270
repository: "cue-lang/cue"
271-
username: "${{ secrets.DOCKER_USERNAME }}"
272-
password: "${{ secrets.DOCKER_PASSWORD }}"
271+
username: "cueckoo"
272+
password: "${{ secrets.CUECKOO_DOCKER_PAT }}"
273273
tag_with_ref: false
274274
tag_with_sha: false
275275
target: "cue"

0 commit comments

Comments
 (0)