Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
werder11 authored Nov 21, 2024
1 parent cab6f97 commit 215b4b2
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,32 @@ jobs:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --file ./.devcontainer/Dockerfile --tag ota:$(date +%s)


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 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

0 comments on commit 215b4b2

Please sign in to comment.