From 2b376f5dfa27d44d3cc8c50acabebaa0618ebab0 Mon Sep 17 00:00:00 2001 From: Quentin JEROME Date: Fri, 29 Nov 2024 12:19:45 +0100 Subject: [PATCH] fix: container name --- .github/workflows/docker-image.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 7134949..fae43f2 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v4 - name: Build the Docker image - run: docker build . --file Dockerfile --tag kunai-build:$(date +%s) + run: docker build . --file Dockerfile --tag kunai-build - name: Checkout Kunai uses: actions/checkout@v3 @@ -29,7 +29,7 @@ jobs: - name: Build Kunai run: | set -euxo pipefail - docker run -t --name japanese_knife -v $PWD/kunai:/kunai-src -w /kunai-src kunai-build:$(date +%s) cargo xbuild + docker run -t --name japanese_knife -v $PWD/kunai:/kunai-src -w /kunai-src kunai-build cargo xbuild exit_code=$(docker container inspect --format '{{.State.ExitCode}}' japanese_knife) docker container rm japanese_knife exit $exit_code