|
|
|
@ -142,13 +142,22 @@ jobs: |
|
|
|
id: image-ref |
|
|
|
id: image-ref |
|
|
|
run: echo "value=${{ steps.image-name.outputs.value }}@${{ steps.build.outputs.digest }}" >> "$GITHUB_OUTPUT" |
|
|
|
run: echo "value=${{ steps.image-name.outputs.value }}@${{ steps.build.outputs.digest }}" >> "$GITHUB_OUTPUT" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Fetch image |
|
|
|
|
|
|
|
run: skopeo --insecure-policy copy docker://${{ steps.image-ref.outputs.value }} oci-archive:image.tar |
|
|
|
|
|
|
|
if: inputs.publish |
|
|
|
|
|
|
|
|
|
|
|
# Uncomment the following lines for debugging: |
|
|
|
# Uncomment the following lines for debugging: |
|
|
|
# - name: Upload image as artifact |
|
|
|
# - name: Upload image as artifact |
|
|
|
# uses: actions/upload-artifact@v3 |
|
|
|
# uses: actions/upload-artifact@v3 |
|
|
|
# with: |
|
|
|
# with: |
|
|
|
# name: "[${{ github.job }}] OCI tarball" |
|
|
|
# name: "[${{ github.job }}] OCI tarball" |
|
|
|
# path: image.tar |
|
|
|
# path: image.tar |
|
|
|
# |
|
|
|
|
|
|
|
|
|
|
|
- name: Extract OCI tarball |
|
|
|
|
|
|
|
run: | |
|
|
|
|
|
|
|
mkdir -p image |
|
|
|
|
|
|
|
tar -xf image.tar -C image |
|
|
|
|
|
|
|
|
|
|
|
# - name: List tags |
|
|
|
# - name: List tags |
|
|
|
# run: skopeo --insecure-policy list-tags oci:image |
|
|
|
# run: skopeo --insecure-policy list-tags oci:image |
|
|
|
# |
|
|
|
# |
|
|
|
|