@@ -120,14 +120,14 @@ jobs:
120
120
env :
121
121
DOCKER_CLI_EXPERIMENTAL : enabled
122
122
123
- # Step 4: Dynamically create Dockerfile
123
+ # Dynamically create Dockerfile
124
124
- name : Create Dockerfile dynamically
125
125
run : |
126
126
echo "Creating Dockerfile..."
127
127
cat <<EOF > Dockerfile
128
128
FROM ubuntu:latest
129
129
130
- # Install Git to clone the repo
130
+ # Install pre-requisites
131
131
RUN apt-get update && apt-get install -y git parallel make python3-pip python3.12
132
132
133
133
# Install UV
@@ -178,22 +178,24 @@ jobs:
178
178
179
179
- name : Build Docker Image
180
180
run : |
181
- docker build -t ghcr.io/${{ steps.string.outputs.lowercase }}/avd/python :0.0.1 .
181
+ docker build -t ghcr.io/${{ steps.string.outputs.lowercase }}/avd/python_avd :0.0.1 .
182
182
183
183
- name : Push Docker Image
184
184
run : |
185
- docker push ghcr.io/${{ steps.string.outputs.lowercase }}/avd/python :0.0.1
185
+ docker push ghcr.io/${{ steps.string.outputs.lowercase }}/avd/python_avd :0.0.1
186
186
187
187
reuse_container_image :
188
188
name : Reuse image with ghcr credentials
189
189
runs-on : ubuntu-latest
190
190
needs : [container-job]
191
191
container :
192
- image : ghcr.io/shivani-gslab/avd/python:0.0.1
192
+ image : ghcr.io/shivani-gslab/avd/python_avd
193
193
credentials :
194
194
username : ${{ github.repository_owner }}
195
- password : ${{ secrets.GITHUB_TOKEN }}
195
+ password : ${{ secrets.GITHUB_TOKEN }}
196
196
steps :
197
+ - name : Check for dockerenv file
198
+ run : (ls /.dockerenv && echo Found dockerenv) || (echo No dockerenv)
197
199
- name : run tests
198
200
shell : bash
199
201
run : |
@@ -237,7 +239,7 @@ jobs:
237
239
238
240
- name : Run Docker Container
239
241
run : |
240
- docker run -dit --name avd-python-container ghcr.io/${{ steps.string.outputs.lowercase }}/avd/python :0.0.1 bash
242
+ docker run -dit --name avd-python-container ghcr.io/${{ steps.string.outputs.lowercase }}/avd/python_avd :0.0.1 bash
241
243
242
244
- name : Execute Ansible unit tests
243
245
run : |
0 commit comments