diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 168f68c2..9a659bb3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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}} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8ee470b6..201d580d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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