Skip to content

Commit

Permalink
fix: updated base image usage
Browse files Browse the repository at this point in the history
  • Loading branch information
henrylee97 committed Nov 28, 2023
1 parent 75e6ae0 commit 10759e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
ls ${lang}-base/${proj}
if [ -d ${lang}-base/${proj} ]; then
echo "base=${lang}-base/${proj}" >> ${GITHUB_OUTPUT}
echo "image=${lang}-base/${proj}:cached" | tr '[:upper:]' '[:lower:]' >> ${GITHUB_OUTPUT}
echo "image=${lang}-base:${proj}" | tr '[:upper:]' '[:lower:]' >> ${GITHUB_OUTPUT}
fi
- name: Build base image
id: build-base-image
Expand All @@ -84,7 +84,7 @@ jobs:
file: ${{ steps.check-if-base-image-exists.outputs.base }}/Dockerfile
platforms: linux/amd64
push: true
tags: localhost:5000/${{ steps.check-if-base-image-exists.outputs.image }}
tags: localhost:5000/base:latest

- uses: docker/build-push-action@v5
if: steps.check-if-base-image-exists.outputs.base == ''
Expand All @@ -103,7 +103,7 @@ jobs:
push: true
tags: localhost:5000/benchmark:latest
build-contexts: |
${{ steps.check-if-base-image-exists.outputs.image }}=docker-image://localhost:5000/${{ steps.check-if-base-image-exists.outputs.image }}
ghcr.io/kupl/starlab-benchmarks/${{ steps.check-if-base-image-exists.outputs.image }}=docker-image://localhost:5000/base:latest
- name: Read metadata
id: read-metadata
Expand Down

0 comments on commit 10759e5

Please sign in to comment.