diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index e7a23bb..ea682f8 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -33,18 +33,25 @@ jobs: # push: true # tags: | # git.housh.dev/michael/${{ gitea.repository }}:${{ gitea.sha }} + - name: Get meta. + id: meta + run: | + echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT + - name: Build test image. run: > docker buildx build \ -file Dockerfile.test \ - --tag ${{ gitea.repositry }}:test \ - --load + --tag ${{ steps.meta.outputs.REPO_NAME }}:test \ + --load \ ./ + - name: Run Test run: > docker run --rm \ -e MOSQUITTO_SERVER=127.0.0.1 \ - ${{ gitea.repository }}:${{ gitea.sha }} swift test + ${{ steps.meta.outputs.REPO_NAME }}:test swift test + - name: Cleanup. if: always() run: docker stop mosquitto && docker rm -f mosquitto