ci: fix registry auth to use REGISTRY_USER/PASSWORD/URL secrets

This commit is contained in:
Graham McIntire 2026-06-06 14:19:16 -05:00
parent 1040353b93
commit 11383cba0f
No known key found for this signature in database
GPG key ID: F4ABF488E6029E59

View file

@ -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 ./...