@@ -71,15 +71,15 @@ Builds docker images and publish them on request
7171
7272These variables can be set in the github repository secret vault.
7373
74- ### ` DOCKER_USERNAME `
74+ ### ` REGISTRY_USERNAME `
7575
76- ** Required** Docker username
76+ ** Required** Registry username
7777
78- ### ` DOCKER_PASSWORD `
78+ ### ` REGISTRY_TOKEN `
7979
80- ** Required** Docker password
80+ ** Required** Registry token
8181
82- ### ` DOCKER_REGISTRY `
82+ ### ` REGISTRY_URL `
8383
8484** Optional** Registry to push the docker image to. Defaults to Docker hub.
8585
@@ -158,8 +158,8 @@ This action is a `docker` action.
158158 image-name : " node"
159159 tags : " latest 12 12.1 12.1.4"
160160 env :
161- DOCKER_USERNAME : ${{ secrets.DOCKER_USERNAME }}
162- DOCKER_PASSWORD : " ${{ secrets.DOCKER_PASSWORD }}"
161+ REGISTRY_USERNAME : ${{ secrets.REGISTRY_USERNAME }}
162+ REGISTRY_TOKEN : " ${{ secrets.REGISTRY_TOKEN }}"
163163 DOCKER_ORGANIZATION : myDockerOrganization
164164` ` `
165165
@@ -172,8 +172,8 @@ This action is a `docker` action.
172172 image-name : " node"
173173 tags : " latest 12 12.1 12.1.4"
174174 env :
175- DOCKER_USERNAME : ${{ secrets.DOCKER_USERNAME }}
176- DOCKER_PASSWORD : " ${{ secrets.DOCKER_PASSWORD }}"
175+ REGISTRY_USERNAME : ${{ secrets.REGISTRY_USERNAME }}
176+ REGISTRY_TOKEN : " ${{ secrets.REGISTRY_TOKEN }}"
177177 DOCKER_ORGANIZATION : myDockerOrganization
178178 FOO_BUILD_ARG : " foo"
179179 BAR_BUILD_ARG : ${{ secrets.SECRET_BAR_BUILD_ARG }}
@@ -191,9 +191,9 @@ This action is a `docker` action.
191191 tags : latest 0.1
192192 push-branches : main develop
193193 env :
194- DOCKER_USERNAME : ${{ github.actor }}
195- DOCKER_PASSWORD : ${{ secrets.GITHUB_TOKEN }}
196- DOCKER_REGISTRY : ghcr.io/organization-here
194+ REGISTRY_USERNAME : ${{ github.actor }}
195+ REGISTRY_TOKEN : ${{ secrets.GITHUB_TOKEN }}
196+ REGISTRY_URL : ghcr.io/organization-here
197197 GITHUB_ORGANIZATION : organization-here
198198` ` `
199199
@@ -220,9 +220,9 @@ Store the content of `cosign.pub`, `cosign.key` and the password in GitHub Secre
220220 push-branches: main develop
221221 sign: true
222222 env:
223- DOCKER_USERNAME : ${{ github.actor }}
224- DOCKER_PASSWORD : ${{ secrets.GITHUB_TOKEN }}
225- DOCKER_REGISTRY : ghcr.io/organization-here
223+ REGISTRY_USERNAME : ${{ github.actor }}
224+ REGISTRY_TOKEN : ${{ secrets.GITHUB_TOKEN }}
225+ REGISTRY_URL : ghcr.io/organization-here
226226 GITHUB_ORGANIZATION: organization-here
227227 COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }}
228228 COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }}
@@ -250,9 +250,9 @@ You will get a result when the image is valid.
250250 push-branches: main develop
251251 slsa-provenance: true
252252 env:
253- DOCKER_USERNAME : ${{ github.actor }}
254- DOCKER_PASSWORD : ${{ secrets.GITHUB_TOKEN }}
255- DOCKER_REGISTRY : ghcr.io/organization-here
253+ REGISTRY_USERNAME : ${{ github.actor }}
254+ REGISTRY_TOKEN : ${{ secrets.GITHUB_TOKEN }}
255+ REGISTRY_URL : ghcr.io/organization-here
256256 GITHUB_ORGANIZATION: organization-here
257257- name: Show provenance
258258 run: |
@@ -275,9 +275,9 @@ the COSIGN environment variables. (see #sign how to generate the key-pair)
275275 slsa-provenance: true
276276 sign: true
277277 env:
278- DOCKER_USERNAME : ${{ github.actor }}
279- DOCKER_PASSWORD : ${{ secrets.GITHUB_TOKEN }}
280- DOCKER_REGISTRY : ghcr.io/organization-here
278+ REGISTRY_USERNAME : ${{ github.actor }}
279+ REGISTRY_TOKEN : ${{ secrets.GITHUB_TOKEN }}
280+ REGISTRY_URL : ghcr.io/organization-here
281281 GITHUB_ORGANIZATION: organization-here
282282 COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }}
283283 COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }}
@@ -306,9 +306,9 @@ You can inspect the provenance and decide on whether you want use the image.
306306 push-branches: main develop
307307 sbom: true
308308 env:
309- DOCKER_USERNAME : ${{ github.actor }}
310- DOCKER_PASSWORD : ${{ secrets.GITHUB_TOKEN }}
311- DOCKER_REGISTRY : ghcr.io/organization-here
309+ REGISTRY_USERNAME : ${{ github.actor }}
310+ REGISTRY_TOKEN : ${{ secrets.GITHUB_TOKEN }}
311+ REGISTRY_URL : ghcr.io/organization-here
312312 GITHUB_ORGANIZATION: organization-here
313313- name: Show SBOM
314314 run: |
@@ -331,9 +331,9 @@ the COSIGN environment variables. (see #sign how to generate the key-pair)
331331 sbom: true
332332 sign: true
333333 env:
334- DOCKER_USERNAME : ${{ github.actor }}
335- DOCKER_PASSWORD : ${{ secrets.GITHUB_TOKEN }}
336- DOCKER_REGISTRY : ghcr.io/organization-here
334+ REGISTRY_USERNAME : ${{ github.actor }}
335+ REGISTRY_TOKEN : ${{ secrets.GITHUB_TOKEN }}
336+ REGISTRY_URL : ghcr.io/organization-here
337337 GITHUB_ORGANIZATION: organization-here
338338 COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }}
339339 COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }}
@@ -363,9 +363,9 @@ the COSIGN environment variables. (see #sign how to generate the key-pair)
363363 sign: true
364364 slsa-provenance: true
365365 env:
366- DOCKER_USERNAME : ${{ github.actor }}
367- DOCKER_PASSWORD : ${{ secrets.GITHUB_TOKEN }}
368- DOCKER_REGISTRY : ghcr.io/organization-here
366+ REGISTRY_USERNAME : ${{ github.actor }}
367+ REGISTRY_TOKEN : ${{ secrets.GITHUB_TOKEN }}
368+ REGISTRY_URL : ghcr.io/organization-here
369369 GITHUB_ORGANIZATION: organization-here
370370 COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }}
371371 COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }}
@@ -413,8 +413,8 @@ This can be done with a small snippet:
413413 tags: "latest ${{ env.major }} ${{ env.minor }} ${{ env.patch }}"
414414 push-on-git-tag: "true"
415415 env:
416- DOCKER_USERNAME : ${{ secrets.DOCKER_USERNAME }}
417- DOCKER_PASSWORD : "${{ secrets.DOCKER_PASSWORD }}"
416+ REGISTRY_USERNAME : ${{ secrets.REGISTRY_USERNAME }}
417+ REGISTRY_TOKEN : "${{ secrets.REGISTRY_TOKEN }}"
418418 DOCKER_ORGANIZATION: myDockerOrganization
419419` ` `
420420
0 commit comments