Replace docker login command with official Docker action
This commit is contained in:
@@ -26,9 +26,13 @@ jobs:
|
|||||||
uses: docker/setup-qemu-action@v1
|
uses: docker/setup-qemu-action@v1
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
- name: Log into ghcr
|
- name: Login to GitHub Container Registry
|
||||||
if: ${{ github.event_name != 'pull_request' && github.event_name != 'push' }}
|
if: ${{ github.event_name != 'pull_request' && github.event_name != 'push' }}
|
||||||
run: echo "${{ secrets.GHCR_TOKEN }}" | docker login ghcr.io -u catthehacker --password-stdin
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.repository_owner }}
|
||||||
|
password: ${{ secrets.GHCR_TOKEN }}
|
||||||
- name: Check which version is currently `ubuntu-latest`
|
- name: Check which version is currently `ubuntu-latest`
|
||||||
id: ubuntu_latest
|
id: ubuntu_latest
|
||||||
if: ${{ matrix.DISTRIB_RELEASE == 'latest' }}
|
if: ${{ matrix.DISTRIB_RELEASE == 'latest' }}
|
||||||
|
|||||||
Reference in New Issue
Block a user