From 30671ddc46cb9e7340fd2325408175cc8b83018c Mon Sep 17 00:00:00 2001 From: Albrecht Lohofener Date: Mon, 30 Sep 2024 19:44:52 +0200 Subject: [PATCH] Add upload of Docker image as artifact --- .github/workflows/build.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 854f030..c9df648 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -64,6 +64,18 @@ jobs: run: | docker buildx imagetools inspect localhost:5000/local/openwrt-docker:latest + - name: Build and export + uses: docker/build-push-action@v6 + with: + tags: localhost:5000/local/openwrt-docker:latest + outputs: type=docker,dest=/tmp/openwrt-docker-image.tar + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: OpenWrt Docker Image + path: /tmp/openwrt-docker-image.tar + - name: Login to Weidmueller wmucdev uses: docker/login-action@v3 with: