diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index c703e6401..b5971a652 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -7,5 +7,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - name: Set Timestamp Variable + run: echo "TIMESTAMP=$(date +%s)" >> $GITHUB_ENV - name: Build the Docker image - run: docker build . --file Dockerfile --tag triton-docker:$(date +%s) + run: docker build . --file Dockerfile --tag triton-docker:$TIMESTAMP + - name: Run test cases + run: docker run --entrypoint /bin/bash --rm triton-docker:$TIMESTAMP -c 'ctest --test-dir /tmp/triton-build/ --output-on-failure' \ No newline at end of file