ci: Use actions variable for dockerhub user rather than github.actor.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
121aa9e39d
commit
a434c4d452
2 changed files with 8 additions and 3 deletions
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
|
@ -46,6 +46,7 @@ jobs:
|
|||
complement: ${{vars.COMPLEMENT != 'false'}}
|
||||
complement_runner: 'het'
|
||||
docker_repo: ${{vars.DOCKER_REPO}}
|
||||
docker_acct: ${{vars.DOCKER_ACCT}}
|
||||
release_url: ${{steps.release.outputs.upload_url}}
|
||||
pages_url: 'https://matrix-construct.github.io/tuwunel/'
|
||||
rust_sdk_integ: ${{vars.RUST_SDK_INTEGRATION != 'false'}}
|
||||
|
|
@ -297,6 +298,7 @@ jobs:
|
|||
uses: ./.github/workflows/publish.yml
|
||||
with:
|
||||
docker_repo: ${{needs.init.outputs.docker_repo}}
|
||||
docker_acct: ${{needs.init.outputs.docker_acct}}
|
||||
release_url: ${{needs.init.outputs.release_url}}
|
||||
pages_url: ${{needs.init.outputs.pages_url}}
|
||||
cargo_profiles: ${{needs.init.outputs.cargo_profiles}}
|
||||
|
|
|
|||
9
.github/workflows/publish.yml
vendored
9
.github/workflows/publish.yml
vendored
|
|
@ -41,6 +41,9 @@ on:
|
|||
docker_repo:
|
||||
type: string
|
||||
description: DockerHub Repository
|
||||
docker_acct:
|
||||
type: string
|
||||
description: DockerHub account name
|
||||
release_url:
|
||||
type: string
|
||||
description: For release assets
|
||||
|
|
@ -114,7 +117,7 @@ jobs:
|
|||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: docker.io
|
||||
username: ${{ github.actor }}
|
||||
username: ${{ inputs.docker_acct }}
|
||||
password: ${{ secrets.dockerhub_token }}
|
||||
|
||||
- name: Bake
|
||||
|
|
@ -176,7 +179,7 @@ jobs:
|
|||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: docker.io
|
||||
username: ${{ github.actor }}
|
||||
username: ${{ inputs.docker_acct }}
|
||||
password: ${{ secrets.dockerhub_token }}
|
||||
|
||||
- name: Release Branch
|
||||
|
|
@ -283,7 +286,7 @@ jobs:
|
|||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: docker.io
|
||||
username: ${{ github.actor }}
|
||||
username: ${{ inputs.docker_acct }}
|
||||
password: ${{ secrets.dockerhub_token }}
|
||||
|
||||
- name: Push Branch
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue