Skip to content

Update docker.yml

Update docker.yml #64

Workflow file for this run

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: actions/checkout@v4
name: Checkout repository
with:
path: carla-scenario-runner
submodules: true
- uses: docker/login-action@v3
name: Login to Docker Hub
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: robinraju/release-downloader@v1.8
name: Download PythonAPI
with:
repository: carla-compose/carla-simulator
latest: true
fileName: PythonAPI.tar.gz
extract: true
out-file-path: artifacts
- name: Remove PythonAPI.tar.gz
run: rm artifacts/PythonAPI.tar.gz
- name: debug
run: tree
- uses: docker/build-push-action@v5
name: Build and push
with:
push: true
file: carla-scenario-runner/docker/Dockerfile
tags: cgellerac/carla-scenario-runner
no-cache: true
context: .