Skip to content

Commit

Permalink
use make update-go-verison to update go version in Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: duanmengkk <[email protected]>
  • Loading branch information
duanmengkk committed Mar 15, 2024
1 parent 8d076da commit 9e9f017
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build-image-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,18 @@ jobs:
- name: Generating Base Image Tag
id: base_tag
run: |
echo "::set-output name=tag::$(git ls-tree --full-tree HEAD -- images/baseimage | awk '{ print $3 }')"
TAG=$(git ls-tree --full-tree HEAD -- images/baseimage | awk '{ print $3 }')
echo "::set-output name=tag::$TAG"
# echo "tag=$(git ls-tree --full-tree HEAD -- ./${{ env.IMAGE_ROOT_PATH }}/${{ env.IMAGE_NAME }} | awk '{ print $3 }')" >> $GITHUB_ENV
# check whether we have upload the same base image to online register , if so, we could not build it
- name: Checking if tag already exists
id: tag-in-repositories
env:
TAG: ${{ steps.base_tag.outputs.tag }}
shell: bash
run: |
if docker buildx imagetools inspect ${{ env.ONLINE_REGISTER }}/${{ env.IMAGE_REPO }}/${{ env.IMAGE_NAME }}:${{ steps.base_tag.outputs.tag }} &>/dev/null; then
if docker buildx imagetools inspect ${{ env.ONLINE_REGISTER }}/${{ env.IMAGE_REPO }}/${{ env.IMAGE_NAME }}:$TAG &>/dev/null; then
echo "exists=true" >> $GITHUB_ENV
echo "the target base image exist , no need to build it "
else
Expand Down

0 comments on commit 9e9f017

Please sign in to comment.