Skip to content

Commit c682221

Browse files
committed
container 7
1 parent 61af208 commit c682221

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/pull-request-management.yml

+9-7
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,14 @@ jobs:
120120
env:
121121
DOCKER_CLI_EXPERIMENTAL: enabled
122122

123-
# Step 4: Dynamically create Dockerfile
123+
# Dynamically create Dockerfile
124124
- name: Create Dockerfile dynamically
125125
run: |
126126
echo "Creating Dockerfile..."
127127
cat <<EOF > Dockerfile
128128
FROM ubuntu:latest
129129
130-
# Install Git to clone the repo
130+
# Install pre-requisites
131131
RUN apt-get update && apt-get install -y git parallel make python3-pip python3.12
132132
133133
# Install UV
@@ -178,22 +178,24 @@ jobs:
178178
179179
- name: Build Docker Image
180180
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 .
182182
183183
- name: Push Docker Image
184184
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
186186
187187
reuse_container_image:
188188
name: Reuse image with ghcr credentials
189189
runs-on: ubuntu-latest
190190
needs: [container-job]
191191
container:
192-
image: ghcr.io/shivani-gslab/avd/python:0.0.1
192+
image: ghcr.io/shivani-gslab/avd/python_avd
193193
credentials:
194194
username: ${{ github.repository_owner }}
195-
password: ${{ secrets.GITHUB_TOKEN }}
195+
password: ${{ secrets.GITHUB_TOKEN }}
196196
steps:
197+
- name: Check for dockerenv file
198+
run: (ls /.dockerenv && echo Found dockerenv) || (echo No dockerenv)
197199
- name: run tests
198200
shell: bash
199201
run: |
@@ -237,7 +239,7 @@ jobs:
237239

238240
- name: Run Docker Container
239241
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
241243
242244
- name: Execute Ansible unit tests
243245
run: |

0 commit comments

Comments
 (0)