From 8999a65f4e6818eaa1531ccd48147a416faea470 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Thu, 17 Oct 2024 22:06:55 +0000 Subject: [PATCH] ci: archive logs --- .github/workflows/images-centos.yml | 7 +++++++ .github/workflows/images-oraclelinux.yml | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/.github/workflows/images-centos.yml b/.github/workflows/images-centos.yml index cd093c5..84e2c5a 100644 --- a/.github/workflows/images-centos.yml +++ b/.github/workflows/images-centos.yml @@ -75,6 +75,13 @@ jobs: ssh root@$IP systemctl is-active images-centos + - name: Archive logs + if: always() + uses: actions/upload-artifact@v4 + with: + name: images-centos-log + path: images-centos.log + - name: delete droplet if: always() run: doctl compute droplet delete -f ga-out-of-tree-images-centos-$GITHUB_SHA diff --git a/.github/workflows/images-oraclelinux.yml b/.github/workflows/images-oraclelinux.yml index f17cfc7..32906d9 100644 --- a/.github/workflows/images-oraclelinux.yml +++ b/.github/workflows/images-oraclelinux.yml @@ -73,6 +73,13 @@ jobs: ssh root@$IP systemctl is-active images-oraclelinux + - name: Archive logs + if: always() + uses: actions/upload-artifact@v4 + with: + name: images-oraclelinux-log + path: images-oraclelinux.log + - name: delete droplet if: always() run: doctl compute droplet delete -f ga-out-of-tree-images-oraclelinux-$GITHUB_SHA