Skip to content

Commit

Permalink
fix image tag
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed Jun 20, 2024
1 parent 2da668f commit 8e945ed
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- "v*.*.*"

env:
IMAGE_NAME: cronos-testground-image
IMAGE_NAME: cronos-testground

jobs:

Expand Down Expand Up @@ -43,5 +43,9 @@ jobs:
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
echo "IMAGE_ID: $IMAGE_ID"
docker load -t $IMAGE_NAME:$VERSION -i "$(nix build --no-link --print-out-paths .#testground-image)"
BUILD_TAG="$(nix eval --raw .#testground-image.imageTag)"
echo "BUILD_TAG: $BUILD_TAG"
docker load -i "$(nix build --no-link --print-out-paths .#testground-image)"
docker tag $IMAGE_NAME:$BUILD_TAG $IMAGE_ID:$VERSION
docker push $IMAGE_ID:$VERSION

0 comments on commit 8e945ed

Please sign in to comment.