Skip to content

Commit

Permalink
ci: build node-runner image
Browse files Browse the repository at this point in the history
  • Loading branch information
legobeat committed Jun 19, 2024
1 parent 91c92d8 commit 401ca5c
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
with:
submodules: true

- name: Build and load
- name: Build and load nvim image
uses: docker/build-push-action@v5
with:
context: .
Expand All @@ -42,6 +42,19 @@ jobs:
push: false
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Build and load node-runner image
uses: docker/build-push-action@v5
with:
context: .
file: sidecars/node-runner/Containerfile
build-args: ${{ matrix.build-args }}
load: true
tags: l7/node:20-bookworm
push: false
cache-from: type=gha
cache-to: type=gha,mode=max

test-make:
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -55,18 +68,21 @@ jobs:
- ubuntu-20.04
- ubuntu-22.04
- ubuntu-24.04
image:
- nvim
- runner
steps:
- uses: actions/checkout@v4
with:
submodules: true
- run: make IMAGE_NAME=localhost/foo IMAGE_TAG=bar CMD=${{ matrix.cmd }}
- run: make IMAGE_NAME=localhost/foo-${{ matrix.image }} IMAGE_TAG=bar CMD=${{ matrix.cmd }}
if: ${{ matrix.cmd != '' }}
env:
CMD: ${{ matrix.cmd }}
- run: make IMAGE_NAME=localhost/foo IMAGE_TAG=bar
- run: make IMAGE_NAME=localhost/foo-${{ matrix.image }} IMAGE_TAG=bar
if: ${{ matrix.cmd == '' }}
- run: ${{ matrix.cmd }} image inspect localhost/foo:bar
- run: ${{ matrix.cmd }} image inspect localhost/foo-${{ matrix.image }}:bar
if: ${{ matrix.cmd != '' }}
- run: podman image inspect localhost/foo:bar
- run: podman image inspect localhost/foo-${{ matrix.image }}:bar
if: ${{ matrix.cmd == '' }}
- run: make test

0 comments on commit 401ca5c

Please sign in to comment.