Skip to content

Update docker-image.yml #4

Update docker-image.yml

Update docker-image.yml #4

Workflow file for this run

name: Docker Image CI
on:
push:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --file ./.devcontainer/Dockerfile --tag ota:$(date +%s)
name: Docker Image CI

Check failure on line 19 in .github/workflows/docker-image.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/docker-image.yml

Invalid workflow file

You have an error in your yaml syntax on line 19
on:
push:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --file ./.devcontainer/Dockerfile --tag shift2sdv:$(date +%s) --target dev
- name: Get Docker image tag
run: echo "IMAGE_TAG=$(date +%s)" >> $GITHUB_ENV
- name: Run tests in Docker container
run: |
docker run --rm \
--privileged \
-v ${{ github.workspace }}:/workspaces/shift2sdv \
-w /workspaces/shift2sdv \
shift2sdv:${{ env.IMAGE_TAG }} \
pytest