Skip to content

Commit bf57fef

Browse files
committed
build(yq): switch to more popular go version of yq
1 parent 332d6c6 commit bf57fef

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Go Check Versions
3+
4+
on:
5+
schedule:
6+
- cron: "0 0 * * 0"
7+
workflow_dispatch:
8+
9+
permissions: {}
10+
11+
jobs:
12+
check:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Check the versions
16+
shell: bash
17+
run: |
18+
set -euo pipefail
19+
IFS=$'\n\t'
20+
docker run --pull always -t --user root --entrypoint /bin/sh "leplusorg/${GITHUB_REPOSITORY#*/docker-}:main" -c 'if go install -u | tee -a /dev/stderr | grep -q -e .; then exit 1; fi'

aws-cli/Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ RUN dnf upgrade -y \
1919
diffutils-3.8-1.amzn2023.0.2 \
2020
findutils-1:4.8.0-2.amzn2023.0.2 \
2121
git-2.50.1-1.amzn2023.0.1 \
22+
golang-1.24.5-1.amzn2023.0.1 \
2223
grep-3.8-1.amzn2023.0.4 \
2324
gzip-1.12-1.amzn2023.0.1 \
2425
iputils-20210202-2.amzn2023.0.4 \
@@ -49,8 +50,10 @@ RUN pipx ensurepath --global \
4950
&& pipx install --global \
5051
cfn-policy-validator==0.0.36 \
5152
json2yaml==1.2.0 \
52-
yamlpath==3.8.2 \
53-
yq==3.4.3
53+
yamlpath==3.8.2
54+
55+
# FIXME @TL workaround until Amazon Linux gets an yq package
56+
RUN GOBIN=/usr/local/bin go install github.com/mikefarah/yq/[email protected]
5457

5558
RUN chmod 777 /opt \
5659
&& adduser --home-dir "${USER_HOME}" --uid "${USER_ID}" "${USER_NAME}"

0 commit comments

Comments
 (0)