Fix image exporting

This commit is contained in:
Marco Aceti 2020-11-24 15:23:00 +01:00
parent f047ece20c
commit 265941a12a
Signed by: MarcoBuster
GPG Key ID: E4ABA81298E4F14D

View File

@ -120,10 +120,17 @@ jobs:
docker push ${{ env.IMAGE_TAG_DH }}:${{ env.VERSION }}-${{ env.SAFE_ARCH }}
- name: Save image as tar archive
if: ${{ ! github.event_name == 'pull_request' }}
run: |
docker image ls # debug
docker save ${{ env.IMAGE_TAG }}:${{ env.HASH_VERSION }}-${{ env.SAFE_ARCH }} -o ${{ env.SAFE_ARCH }}.tar
- name: Save image as tar archive (pull request)
if: ${{ github.event_name == 'pull_request' }}
run: |
docker image ls # debug
docker save tdlightbotapi:${{ env.HASH_VERSION }}-${{ env.SAFE_ARCH }} -o ${{ env.SAFE_ARCH }}.tar
- name: Upload image as artifact
uses: actions/upload-artifact@v2
with: