Skip to content

Commit 60675a9

Browse files
committed
Bugfix
1 parent 05cd54e commit 60675a9

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/deploy-DEV.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)