Skip to content

Commit ae48778

Browse files
committed
configure docker credentials
1 parent 61a096b commit ae48778

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/workflows/release.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,7 @@ jobs:
2323
args: release
2424
env:
2525
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26-
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
27-
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
26+
DOCKER_TOKEN: ${{ secrets.DOCKER_PASSWORD }}
27+
DOCKER_USERNAME: 'alexeiled'
28+
DOCKER_REGISTRY: 'index.docker.io'
29+
DOCKER_ORG: 'doitintl'

.goreleaser.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ env:
44
before:
55
hooks:
66
- go mod download
7+
- echo {{ .Env.DOCKER_TOKEN }} | docker login -u {{ .Env.DOCKER_USERNAME }} --password-stdin {{ .Env.DOCKER_REGISTRY }}
78

89
builds:
910
- env:
@@ -34,9 +35,9 @@ release:
3435

3536
dockers:
3637
- image_templates:
37-
- 'doitintl/secrets-init:{{ .Tag }}'
38-
- 'doitintl/secrets-init:v{{ .Major }}.{{ .Minor }}'
39-
- 'doitintl/secrets-init:latest'
38+
- '{{ .Env.DOCKER_ORG }}/secrets-init:{{ .Tag }}'
39+
- '{{ .Env.DOCKER_ORG }}/secrets-init:v{{ .Major }}.{{ .Minor }}'
40+
- '{{ .Env.DOCKER_ORG }}/secrets-init:latest'
4041
binaries:
4142
- secrets-init
4243
build_flag_templates:

0 commit comments

Comments
 (0)