Skip to content

Commit e8d1585

Browse files
author
eliranb
committed
try using env inside a job
1 parent 39de249 commit e8d1585

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/init_container.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040
]
4141
runs-on: ubuntu-latest
4242
name: Build and push Docker image
43+
env:
44+
base_image_tag: alpine-3.20.0
4345
steps:
4446
- name: Set release tag
4547
shell: bash
@@ -111,8 +113,6 @@ jobs:
111113
112114
- name: Build and push ${{ matrix.agents.name }} container
113115
uses: docker/build-push-action@v4
114-
env:
115-
base_image_tag: alpine-3.20.0
116116
with:
117117
context: .
118118
file: ./lightrun-init-agent/Dockerfile
@@ -121,7 +121,7 @@ jobs:
121121
tags: ${{steps.set_docker_tags.outputs.DOCKER_TAGS}}
122122
build-args: |
123123
FILE=${{ matrix.agents.file }}
124-
base_image_tag=$base_image_tag
124+
base_image_tag=${{ env.base_image_tag }}
125125
126126
- name: Slack Notification
127127
if: always()

0 commit comments

Comments
 (0)