Fix docker-login failing since move to GitHub organization (#510)

Fixes #509
This commit is contained in:
Yusuke Kuoka 2021-05-03 14:56:58 +09:00 committed by GitHub
parent e00b3b9714
commit 5f59734078
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 8 deletions

View File

@ -37,7 +37,7 @@ jobs:
env: env:
RUNNER_VERSION: 2.278.0 RUNNER_VERSION: 2.278.0
DOCKER_VERSION: 19.03.12 DOCKER_VERSION: 19.03.12
DOCKERHUB_USERNAME: ${{ github.repository_owner }} DOCKERHUB_USERNAME: ${{ secrets.DOCKER_USER }}
steps: steps:
- name: Set outputs - name: Set outputs
id: vars id: vars
@ -58,7 +58,7 @@ jobs:
uses: docker/login-action@v1 uses: docker/login-action@v1
if: ${{ github.event_name == 'push' || github.event_name == 'release' }} if: ${{ github.event_name == 'push' || github.event_name == 'release' }}
with: with:
username: ${{ github.repository_owner }} username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_ACCESS_TOKEN }} password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
- name: Build and Push Versioned Tags - name: Build and Push Versioned Tags
@ -88,7 +88,7 @@ jobs:
env: env:
RUNNER_VERSION: 2.277.1 RUNNER_VERSION: 2.277.1
DOCKER_VERSION: 19.03.12 DOCKER_VERSION: 19.03.12
DOCKERHUB_USERNAME: ${{ github.repository_owner }} DOCKERHUB_USERNAME: ${{ secrets.DOCKER_USER }}
steps: steps:
- name: Checkout - name: Checkout
@ -106,7 +106,7 @@ jobs:
uses: docker/login-action@v1 uses: docker/login-action@v1
if: ${{ github.event_name == 'push' || github.event_name == 'release' }} if: ${{ github.event_name == 'push' || github.event_name == 'release' }}
with: with:
username: ${{ github.repository_owner }} username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_ACCESS_TOKEN }} password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
- name: Build and Push Latest Tag - name: Build and Push Latest Tag

View File

@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Release name: Release
env: env:
DOCKERHUB_USERNAME: ${{ github.repository_owner }} DOCKERHUB_USERNAME: ${{ secrets.DOCKER_USER }}
steps: steps:
- name: Set outputs - name: Set outputs
id: vars id: vars
@ -47,7 +47,7 @@ jobs:
- name: Login to DockerHub - name: Login to DockerHub
uses: docker/login-action@v1 uses: docker/login-action@v1
with: with:
username: ${{ github.repository_owner }} username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_ACCESS_TOKEN }} password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
- name: Build and Push - name: Build and Push

View File

@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: release-latest name: release-latest
env: env:
DOCKERHUB_USERNAME: ${{ github.repository_owner }} DOCKERHUB_USERNAME: ${{ secrets.DOCKER_USER }}
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
@ -29,7 +29,7 @@ jobs:
- name: Login to DockerHub - name: Login to DockerHub
uses: docker/login-action@v1 uses: docker/login-action@v1
with: with:
username: ${{ github.repository_owner }} username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_ACCESS_TOKEN }} password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
# Considered unstable builds # Considered unstable builds