-
Notifications
You must be signed in to change notification settings - Fork 10
32 lines (29 loc) · 1.11 KB
/
test-container.yml
File metadata and controls
32 lines (29 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Build test container
on:
workflow_dispatch:
inputs:
node-version:
description: 'Node version'
required: true
debian-version:
description: 'Debian version'
required: true
jdk-version:
description: 'JDK version'
required: true
env:
REGISTRY: ghcr.io
IMAGE_NAME: ghcr.io/markusjx/node-java-bridge/java-bridge-asan-testcontainer:latest
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Docker login
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login $REGISTRY -u ${{ github.actor }} --password-stdin
- name: Build image
run: |
docker build --push -f docker/Dockerfile.asan -t $IMAGE_NAME\
--build-arg JDK_VERSION=${{github.event.inputs.jdk-version}} \
--build-arg NODE_VERSION=${{github.event.inputs.node-version}} \
--build-arg DEBIAN_VERSION=${{github.event.inputs.debian-version}} .