From 07466435f0d526f4e06849af17d2a18e17fd7f84 Mon Sep 17 00:00:00 2001 From: Alexander Minkin Date: Mon, 4 Nov 2024 00:44:14 +0300 Subject: [PATCH] ci(actions): add uploading of built images as artifacts --- .github/workflows/build.yaml | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 53b154e8..e190eafa 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -37,7 +37,7 @@ jobs: tags: ghcr.io/${{ steps.repositorystring.outputs.lowercase }}/${{env.BASE_IMAGE_NAME}}:test platforms: linux/amd64,linux/arm64 file: install/automated/docker/openvk.Dockerfile - load: true + outputs: type=docker,dest=/tmp/openvk.tar build-args: | GITREPO=${{ steps.repositorystring.outputs.lowercase }} @@ -47,7 +47,7 @@ jobs: tags: ghcr.io/${{ steps.repositorystring.outputs.lowercase }}/${{env.DB_IMAGE_NAME}}:${{env.DB_VERSION}}-primary platforms: linux/amd64,linux/arm64 file: install/automated/docker/mariadb-primary.Dockerfile - load: true + outputs: type=docker,dest=/tmp/mariadb-primary.tar build-args: | VERSION=${{env.DB_VERSION}} @@ -57,6 +57,24 @@ jobs: tags: ghcr.io/${{ steps.repositorystring.outputs.lowercase }}/${{env.DB_IMAGE_NAME}}:${{env.DB_VERSION}}-eventdb platforms: linux/amd64,linux/arm64 file: install/automated/docker/mariadb-eventdb.Dockerfile - load: true + outputs: type=docker,dest=/tmp/mariadb-eventdb.tar build-args: | VERSION=${{env.DB_VERSION}} + + - name: Upload base image as an artifact + uses: actions/upload-artifact@v4 + with: + name: openvk + path: /tmp/openvk.tar + + - name: Upload MariaDB primary as an artifact + uses: actions/upload-artifact@v4 + with: + name: mariadb-primary + path: /tmp/mariadb-primary.tar + + - name: Upload MariaDB event as an artifact + uses: actions/upload-artifact@v4 + with: + name: mariadb-eventdb + path: /tmp/mariadb-eventdb.tar \ No newline at end of file