Skip to content

Commit

Permalink
feat: Updating tests with image copy operation
Browse files Browse the repository at this point in the history
  • Loading branch information
IAreKyleW00t committed Sep 3, 2024
1 parent 6779f19 commit 266b6c1
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

0 comments on commit 266b6c1

Please sign in to comment.