diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 04e5d20..942f567 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,9 +37,30 @@ jobs: regctl-release: ${{ matrix.release }} cache: ${{ matrix.cache }} - - name: Test regctl + - name: Test regctl (Linux/macOS) + if: contains(fromJson('["Linux","macOS"]'), runner.os) shell: bash env: VERSION: ${{ steps.regctl.outputs.version }} run: | regctl version | grep "$VERSION" + UUID=$(uuidgen) + echo "ttl.sh/$UUID:$GITHUB_RUN_ID" + regctl image copy \ + --verbosity info \ + "busybox:latest" \ + "ttl.sh/$UUID:$GITHUB_RUN_ID" + + - name: Test regctl (Windows) + if: runner.os == 'Windows' + shell: pwsh + env: + VERSION: ${{ steps.regctl.outputs.version }} + run: | + regctl version | grep "$env:VERSION" + $UUID=[guid]::NewGuid().ToString() + echo "ttl.sh/${UUID}:${env:GITHUB_RUN_ID}" + regctl image copy ` + --verbosity info ` + "busybox:latest" ` + "ttl.sh/${UUID}:${env:GITHUB_RUN_ID}"