forked from carla-simulator/scenario_runner
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 1.02 KB
/
docker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Docker
on: [push, pull_request]
jobs:
clean-up:
name: Clean up
runs-on: self-hosted
steps:
- name: Clean up
run: rm -rf *
create-image:
name: Create docker image
runs-on: self-hosted
steps:
- uses: docker/login-action@v3
name: Login to Docker Hub
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: robinraju/[email protected]
name: Download python-api
with:
repository: carla-compose/carla
latest: true
fileName: PythonAPI.tar.gz
out-file-path: ../artifacts
- name: Extract PythonAPI
run: tar -xvzf ../artifacts/PythonAPI.tar.gz -C ../artifacts
- uses: docker/build-push-action@v5
name: Build and push
with:
push: true
file: scenario_runner/docker/Dockerfile
tags: cgellerac/carla-scenario-runner
no-cache: true
context: ..