ci: fix registry image path to use github.repository
This commit is contained in:
parent
edcda521a6
commit
5f2d74d303
1 changed files with 3 additions and 3 deletions
|
|
@ -30,7 +30,7 @@ jobs:
|
||||||
username: ${{ secrets.REGISTRY_USER }}
|
username: ${{ secrets.REGISTRY_USER }}
|
||||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
|
|
||||||
- name: Extract version from tag
|
- name: Extract version
|
||||||
id: version
|
id: version
|
||||||
run: echo "tag=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT"
|
run: echo "tag=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
|
|
@ -43,8 +43,8 @@ jobs:
|
||||||
build-args: |
|
build-args: |
|
||||||
VERSION=${{ steps.version.outputs.tag }}
|
VERSION=${{ steps.version.outputs.tag }}
|
||||||
tags: |
|
tags: |
|
||||||
${{ secrets.REGISTRY_URL }}/towerops-agent:latest
|
${{ secrets.REGISTRY_URL }}/${{ github.repository }}:latest
|
||||||
${{ secrets.REGISTRY_URL }}/towerops-agent:${{ steps.version.outputs.tag }}
|
${{ secrets.REGISTRY_URL }}/${{ github.repository }}:${{ 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