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 f85f8e6 commit f96ef4a
Showing 1 changed file with 26 additions and 27 deletions.
53 changes: 26 additions & 27 deletions .github/workflows/Test_External_Rock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,33 +17,32 @@ jobs:
outputs:
oci-filename: ${{ steps.configure.outputs.oci-filename }}
steps:
# - uses: actions/checkout@v4
- 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

- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: ${{ steps.configure.outputs.oci-filename }}
path: ${{ steps.configure.outputs.oci-filename }}
retention-days: 1
- 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

- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: ${{ steps.configure.outputs.oci-filename }}
path: ${{ steps.configure.outputs.oci-filename }}
retention-days: 1


test-image:
Expand Down

0 comments on commit f96ef4a

Please sign in to comment.