fix(ci): Switch between Gitea and GitHub
This commit is contained in:
@@ -40,11 +40,19 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Login to Github Packages
|
||||
uses: docker/login-action@v1
|
||||
if: ${{ github.server_url == 'https://github.com' }}
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ github.actor }}
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ github.token }}
|
||||
- name: Login to Gitea Packages
|
||||
if: ${{ github.server_url != 'https://github.com' }}
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.DOCKER_TOKEN }}
|
||||
- name: Extract metadata for Docker
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
|
||||
Reference in New Issue
Block a user