Skip to content

Commit

Permalink
fix: extracting golang version from updated Dockerfile FROM line
Browse files Browse the repository at this point in the history
  • Loading branch information
shano committed Jan 21, 2025
1 parent 4600c3c commit 60b241c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ jobs:
name: Check circleci go version matches docker image
command: |
circleci_go_version=$(go version | awk '{print $3}' | sed 's/^go//')
go_image_tag=$(grep '^FROM' Dockerfile | head -n 1 | cut -d ' ' -f 2)
go_image_tag=$(grep '^FROM' Dockerfile | head -n 1 | cut -d ' ' -f 3)
docker pull $go_image_tag
docker_go_version=$(docker inspect $go_image_tag | grep 'GOLANG_VERSION=' | sed -n 's/.*GOLANG_VERSION=\([^"]*\).*/\1/p')
Expand Down

0 comments on commit 60b241c

Please sign in to comment.