Skip to content

Commit

Permalink
Add version to native builder
Browse files Browse the repository at this point in the history
  • Loading branch information
xlight05 committed Jun 15, 2023
1 parent 663019e commit 60d307a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/push_native_builder.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
name: Push native image builder

on:
workflow_dispatch
workflow_dispatch:
inputs:
tag:
description: 'Docker image tag'
required: true
default: latest
type: string

jobs:
build:
Expand All @@ -25,4 +31,4 @@ jobs:
file: ./docker-images/native-builder/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ secrets.DOCKER_REPO_NAME }}/native-builder:latest
tags: ${{ secrets.DOCKER_REPO_NAME }}/native-builder:${{ github.event.inputs.tag }}
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ public class DockerGenConstants {
public static final String TAG_SEPARATOR = ":";
public static final String OPENJDK_11_JRE_SLIM_BASE = "ballerina/jvm-runtime:1.0";
public static final String OPENJDK_11_JRE_WINDOWS_BASE_IMAGE = "openjdk:11-windowsservercore";

public static final String NATIVE_BUILDER_IMAGE = "ballerina/native-builder:latest";

public static final String NATIVE_BUILDER_TAG = "2201.7.x";
public static final String NATIVE_BUILDER_IMAGE = "ballerina/native-builder:" + NATIVE_BUILDER_TAG;
public static final String RUNTIME_BASE_IMAGE = "debian:11-slim";

public static final int MAX_BALLERINA_LAYERS = 110;
Expand Down

0 comments on commit 60d307a

Please sign in to comment.