From d6459d4c7b17580f266e778dc6c874499ab44fac Mon Sep 17 00:00:00 2001 From: David Fischak <16311647+davidfischak@users.noreply.github.com> Date: Tue, 3 Dec 2024 14:34:42 +0100 Subject: [PATCH] Update and rename build-publish.yml to build-push.yml --- .github/workflows/build-publish.yml | 29 ---------------------- .github/workflows/build-push.yml | 37 +++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 29 deletions(-) delete mode 100644 .github/workflows/build-publish.yml create mode 100644 .github/workflows/build-push.yml diff --git a/.github/workflows/build-publish.yml b/.github/workflows/build-publish.yml deleted file mode 100644 index 2a75e34..0000000 --- a/.github/workflows/build-publish.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Build and Publish Julia Kernelspec Docker Image - -on: - push: - branches: - - main - workflow_dispatch: - -jobs: - build-and-publish: - runs-on: ubuntu-24.04 - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Log in to GitHub Container Registry - run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin - - - name: Build Docker Image - run: | - docker build \ - --file kernel-julia/gateway/kernelspec-image/Dockerfile \ - --tag ghcr.io/${{ github.repository }}/julia-jeg-kernelspec:beta \ - kernel-julia/gateway/kernelspec-image - - - name: Push Docker Image - run: | - docker push ghcr.io/${{ github.repository }}/julia-jeg-kernelspec:beta diff --git a/.github/workflows/build-push.yml b/.github/workflows/build-push.yml new file mode 100644 index 0000000..3c3747d --- /dev/null +++ b/.github/workflows/build-push.yml @@ -0,0 +1,37 @@ +name: Build and Publish Julia Docker Images + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + build-and-publish: + runs-on: ubuntu-24.04 + strategy: + matrix: + image: + - name: "julia-jeg-kernelspec" + dockerfile: "kernel-julia/gateway/kernelspec-image/Dockerfile" + context: "kernel-julia/gateway/kernelspec-image" + tag: "beta" + - name: "julia-jeg-kernel" + dockerfile: "kernel-julia/container/Dockerfile" + context: "kernel-julia/container" + tag: "beta" + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Log in to GitHub Container Registry + run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin + + - name: Build and Push Docker Image + run: | + docker build \ + --file ${{ matrix.image.dockerfile }} \ + --tag ghcr.io/${{ github.repository }}/${{ matrix.image.name }}:${{ matrix.image.tag }} \ + ${{ matrix.image.context }} + docker push ghcr.io/${{ github.repository }}/${{ matrix.image.name }}:${{ matrix.image.tag }}