Skip to content

Commit

Permalink
fix(Test_External_Rock.yaml): syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
clay-lake committed Nov 25, 2024
1 parent f96ef4a commit 2855700
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/Test_External_Rock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,23 @@ jobs:
steps:
- id: configure
run: |
oci_filename="$(echo "${{ env.TEST_IMAGE }}" \
| sed 's/ghcr.io\/canonical\/oci-factory\///g' | tr ':' '_')"
echo "oci-filename=$oci_filename" >> "$GITHUB_OUTPUT"


if [[ "${{ inputs.cache-key }}" != "" ]]
then
source=oci:${{ env.TEST_IMAGE }}
else
source=
fi

docker run --rm -v /var/run/docker.sock:/var/run/docker.sock \
-v $PWD:/workdir -w /workdir \
${{ env.SKOPEO_IMAGE }} \
copy docker://${{ env.TEST_IMAGE }} \
oci-archive:$oci_filename
oci_filename="$(echo "${{ env.TEST_IMAGE }}" \
| sed 's/ghcr.io\/canonical\/oci-factory\///g' | tr ':' '_')"
echo "oci-filename=$oci_filename" >> "$GITHUB_OUTPUT"
if [[ "${{ inputs.cache-key }}" != "" ]]
then
source=oci:${{ env.TEST_IMAGE }}
else
source=
fi
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock \
-v $PWD:/workdir -w /workdir \
${{ env.SKOPEO_IMAGE }} \
copy docker://${{ env.TEST_IMAGE }} \
oci-archive:$oci_filename
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
Expand Down

0 comments on commit 2855700

Please sign in to comment.