From acb23c30c34f936f3eeb082a4db5b3eb3f85af1b Mon Sep 17 00:00:00 2001 From: Andreea Andrisan Date: Tue, 9 Jul 2024 15:32:41 +0300 Subject: [PATCH] .github/workflows: add docker images export on github packages Signed-off-by: Andreea Andrisan --- .github/workflows/docker-image-build.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-image-build.yml b/.github/workflows/docker-image-build.yml index 4a8b64f92d..ff6cd33f97 100644 --- a/.github/workflows/docker-image-build.yml +++ b/.github/workflows/docker-image-build.yml @@ -19,6 +19,13 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_PASSWORD }} + - name: Log in to the GitHub Container registry + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Checkout Dockerfile for image building uses: actions/checkout@v4 with: @@ -66,7 +73,9 @@ jobs: uses: docker/build-push-action@v2 with: push: true - tags: aandrisa/${{ matrix.kuiper_artifact }}:latest file: ci/Dockerfile context: . platforms: ${{ matrix.arch }} + tags: | + aandrisa/${{ matrix.kuiper_artifact }}:latest + ghcr.io/analogdevicesinc/adi-kuiper-gen/${{ matrix.kuiper_artifact }}:latest