Skip to content

use global rule

use global rule #94

Workflow file for this run

name: Docker
on: [push, pull_request]
jobs:
clean-up:
name: Clean up
runs-on: ubuntu-latest
steps:
- name: Clean up
run: rm -rf *
create-image:
name: Create docker image
runs-on: ubuntu-latest
needs: clean-up
env:
IMAGE_TAG: ${{ github.ref == 'refs/heads/main' && 'latest' || 'latest_${{ github.ref_name }}_ci }}

Check failure on line 20 in .github/workflows/docker.yml

View workflow run for this annotation

GitHub Actions / Docker

Invalid workflow file

The workflow is not valid. .github/workflows/docker.yml (Line: 20, Col: 18): The expression is not closed. An unescaped ${{ sequence was found, but the closing }} sequence was not found.
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: .
- name: Remove PythonAPI.tar.gz
run: rm PythonAPI.tar.gz
#- name: Set image tag
# run: |
# echo "IMAGE_TAG="latest_${{ github.ref_name }}_ci" >> $GITHUB_ENV
# if: github.ref.name != github.event.repository.default_branch
- uses: docker/build-push-action@v5
name: Build and push
with:
push: true
file: carla-scenario-runner/docker/Dockerfile
tags: rwthika/carla-scenario-runner:${IMAGE_TAG}
no-cache: true
context: .