File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -69,15 +69,21 @@ jobs:
6969 platform : [amd64] # ,linux/arm64 -Temporary, getting no space left on device
7070 steps :
7171 - uses : actions/checkout@v3
72+ - name : Build image tag name
73+ id : image_tag
74+ run : |
75+ BRANCH_NAME="${GITHUB_REF##*/}"
76+ TAG="test-${{ github.actor }}-${BRANCH_NAME}"
77+ echo "Tag name: ${TAG}"
78+ echo "tag=${TAG}" >>"$GITHUB_OUTPUT"
7279 - uses : actions/download-artifact@v3
7380 with :
7481 name : oci-tar
75- path : /oci-tar
7682 - name : Load image
7783 shell : bash
7884 run : |
79- if [[ -f /oci-tar/ image.tar ]]; then
80- skopeo copy --override-os=linux --override-arch=${{ matrix.platform }} oci-archive:/oci-tar/ image.tar oxsecurity/megalinter:${{ steps.image_tag.outputs.tag }}
85+ if [[ -f image.tar ]]; then
86+ skopeo copy --override-os=linux --override-arch=${{ matrix.platform }} oci-archive:image.tar docker-daemon: oxsecurity/megalinter:${{ steps.image_tag.outputs.tag }}
8187 fi
8288 # Free disk space
8389 - name : Free Disk space
You can’t perform that action at this time.
0 commit comments