Skip to content

Commit 39de249

Browse files
author
eliranb
committed
expose init container tag as param and point it to lightruncom/prod-base repo
1 parent 4429413 commit 39de249

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/init_container.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ jobs:
111111
112112
- name: Build and push ${{ matrix.agents.name }} container
113113
uses: docker/build-push-action@v4
114+
env:
115+
base_image_tag: alpine-3.20.0
114116
with:
115117
context: .
116118
file: ./lightrun-init-agent/Dockerfile
@@ -119,6 +121,7 @@ jobs:
119121
tags: ${{steps.set_docker_tags.outputs.DOCKER_TAGS}}
120122
build-args: |
121123
FILE=${{ matrix.agents.file }}
124+
base_image_tag=$base_image_tag
122125
123126
- name: Slack Notification
124127
if: always()

lightrun-init-agent/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
FROM alpine:latest
1+
ARG base_image_tag=alpine-3.20.0
22

3+
FROM lightruncom/prod-base:${base_image_tag}
34
ARG FILE
45

56
COPY lightrun-init-agent/$FILE /tmp/$FILE

0 commit comments

Comments
 (0)