Skip to content

Commit f7ba18b

Browse files
refactor: replace addnab/docker-run-action with native docker command (AntaresSimulatorTeam#1204)
Remove unmaintained third party action addnab/docker-run-action Replace with pure CLI
1 parent b08494b commit f7ba18b

1 file changed

Lines changed: 16 additions & 28 deletions

File tree

.github/workflows/build_centos7.yml

Lines changed: 16 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -203,29 +203,23 @@ jobs:
203203
run: |
204204
tar --strip-components=1 -xzf ${{needs.build.outputs.TGZ_NAME}}
205205
206-
- uses: addnab/docker-run-action@v3
207-
name: Run tests
208-
with:
209-
image: centos:run
210-
shell: bash
211-
options: -v ${{ github.workspace }}:/work
212-
run: |
206+
- name: Run tests
207+
run: |
208+
docker run --rm -v ${{ github.workspace }}:/work centos:run bash -lc '
213209
export PATH=$PATH:/usr/lib64/openmpi/bin
214210
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64/openmpi/lib
215211
cd /work
216212
./antares-xpansion-launcher -i examples/SmallTestFiveCandidates --allow-run-as-root
213+
'
217214
218-
- uses: addnab/docker-run-action@v3
219-
name: run tests with 2 processes
220-
with:
221-
image: centos:run
222-
shell: bash
223-
options: -v ${{ github.workspace }}:/work
224-
run: |
215+
- name: run tests with 2 processes
216+
run: |
217+
docker run --rm -v ${{ github.workspace }}:/work centos:run bash -lc '
225218
export PATH=$PATH:/usr/lib64/openmpi/bin
226219
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64/openmpi/lib
227220
cd /work
228221
./antares-xpansion-launcher -i examples/SmallTestFiveCandidates -n 2 --allow-run-as-root
222+
'
229223
230224
test_single_file_asset:
231225
runs-on: ubuntu-latest
@@ -250,29 +244,23 @@ jobs:
250244
run: |
251245
tar --strip-components=1 -xzf ${{needs.build.outputs.SINGLE_FILE_NAME}}
252246
253-
- uses: addnab/docker-run-action@v3
254-
name: Run tests
255-
with:
256-
image: centos:run
257-
shell: bash
258-
options: -v ${{ github.workspace }}:/work
259-
run: |
247+
- name: Run tests
248+
run: |
249+
docker run --rm -v ${{ github.workspace }}:/work centos:run bash -lc '
260250
export PATH=$PATH:/usr/lib64/openmpi/bin
261251
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64/openmpi/lib
262252
cd /work
263253
./antares-xpansion-launcher -i examples/SmallTestFiveCandidates --allow-run-as-root
254+
'
264255
265-
- uses: addnab/docker-run-action@v3
266-
name: run tests with 2 processes
267-
with:
268-
image: centos:run
269-
shell: bash
270-
options: -v ${{ github.workspace }}:/work
271-
run: |
256+
- name: run tests with 2 processes
257+
run: |
258+
docker run --rm -v ${{ github.workspace }}:/work centos:run bash -lc '
272259
export PATH=$PATH:/usr/lib64/openmpi/bin
273260
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64/openmpi/lib
274261
cd /work
275262
./antares-xpansion-launcher -i examples/SmallTestFiveCandidates -n 2 --allow-run-as-root
263+
'
276264
277265
release:
278266
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)