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
|
- name: Set up Docker Buildx
|
||||||
uses: https://github.com/docker/setup-buildx-action@v3
|
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
|
uses: https://github.com/docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: codeberg.org
|
registry: ${{ secrets.REGISTRY_URL }}
|
||||||
username: ${{ secrets.CODEBERG_USER }}
|
username: ${{ secrets.REGISTRY_USER }}
|
||||||
password: ${{ secrets.CODEBERG_TOKEN }}
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
|
|
||||||
- name: Extract version from tag
|
- name: Extract version from tag
|
||||||
id: version
|
id: version
|
||||||
|
|
@ -43,8 +43,8 @@ jobs:
|
||||||
build-args: |
|
build-args: |
|
||||||
VERSION=${{ steps.version.outputs.tag }}
|
VERSION=${{ steps.version.outputs.tag }}
|
||||||
tags: |
|
tags: |
|
||||||
codeberg.org/towerops-agent/towerops-agent:latest
|
${{ secrets.REGISTRY_URL }}/towerops-agent:latest
|
||||||
codeberg.org/towerops-agent/towerops-agent:${{ steps.version.outputs.tag }}
|
${{ secrets.REGISTRY_URL }}/towerops-agent:${{ steps.version.outputs.tag }}
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: go test -race -v -count=1 -timeout 60s ./...
|
run: go test -race -v -count=1 -timeout 60s ./...
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue