ci: fix registry auth to use REGISTRY_USER/PASSWORD/URL secrets
This commit is contained in:
parent
1040353b93
commit
11383cba0f
1 changed files with 6 additions and 6 deletions
|
|
@ -23,12 +23,12 @@ jobs:
|
|||
- name: Set up Docker Buildx
|
||||
uses: https://github.com/docker/setup-buildx-action@v3
|
||||
|
||||
- name: Log in to Codeberg Container Registry
|
||||
- name: Log in to Container Registry
|
||||
uses: https://github.com/docker/login-action@v3
|
||||
with:
|
||||
registry: codeberg.org
|
||||
username: ${{ secrets.CODEBERG_USER }}
|
||||
password: ${{ secrets.CODEBERG_TOKEN }}
|
||||
registry: ${{ secrets.REGISTRY_URL }}
|
||||
username: ${{ secrets.REGISTRY_USER }}
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
|
||||
- name: Extract version from tag
|
||||
id: version
|
||||
|
|
@ -43,8 +43,8 @@ jobs:
|
|||
build-args: |
|
||||
VERSION=${{ steps.version.outputs.tag }}
|
||||
tags: |
|
||||
codeberg.org/towerops-agent/towerops-agent:latest
|
||||
codeberg.org/towerops-agent/towerops-agent:${{ steps.version.outputs.tag }}
|
||||
${{ secrets.REGISTRY_URL }}/towerops-agent:latest
|
||||
${{ secrets.REGISTRY_URL }}/towerops-agent:${{ steps.version.outputs.tag }}
|
||||
|
||||
- name: Run tests
|
||||
run: go test -race -v -count=1 -timeout 60s ./...
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue