File tree Expand file tree Collapse file tree 4 files changed +66
-13
lines changed
Expand file tree Collapse file tree 4 files changed +66
-13
lines changed Original file line number Diff line number Diff line change 1+ name : DNF Check Versions
2+
3+ on :
4+ schedule :
5+ - cron : " 0 0 * * 0"
6+ workflow_dispatch :
7+
8+ permissions : {}
9+
10+ jobs :
11+ check :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : Check the versions
15+ shell : bash
16+ run : |
17+ docker run --pull always -t --user root "leplusorg/${GITHUB_REPOSITORY#*/docker-}:main" sh -c '
18+ if dnf upgrade -y | tee -a /dev/stderr | grep -q -v -e '"'"'^Nothing to do.'"'"' ; then
19+ exit 1
20+ fi
21+ '
Original file line number Diff line number Diff line change 1+ name : PIP Check Versions
2+
3+ on :
4+ schedule :
5+ - cron : " 0 0 * * 0"
6+ workflow_dispatch :
7+
8+ permissions : {}
9+
10+ jobs :
11+ check :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : Check the versions
15+ shell : bash
16+ run : |
17+ docker run --pull always -t --user root "leplusorg/${GITHUB_REPOSITORY#*/docker-}:main" sh -c '
18+ # FIXME @TL workaround until Amazon Linux gets a pipx package
19+ if pip3 list --outdated | tee -a /dev/stderr | grep -q -e '"'"'^pipx '"'"' ; then
20+ exit 1
21+ fi
22+ '
Original file line number Diff line number Diff line change 1+ name : Pipx Check Versions
2+
3+ on :
4+ schedule :
5+ - cron : " 0 0 * * 0"
6+ workflow_dispatch :
7+
8+ permissions : {}
9+
10+ jobs :
11+ check :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : Check the versions
15+ shell : bash
16+ run : |
17+ docker run --pull always -t --user root "leplusorg/${GITHUB_REPOSITORY#*/docker-}:main" sh -c '
18+ if pipx upgrade-all --global | tee -a /dev/stderr | grep -q -e . ; then
19+ exit 1
20+ fi
21+ '
Original file line number Diff line number Diff line change @@ -36,30 +36,19 @@ RUN dnf upgrade -y \
3636 wget-1.21.3-1.amzn2023.0.4 \
3737 xz-5.2.5-9.amzn2023.0.2 \
3838 zip-3.0-28.amzn2023.0.2 \
39- && if dnf upgrade -y | tee -a /dev/stderr | grep -q -v -e '^Nothing to do.' ; then \
40- exit 1 ; \
41- fi \
4239 && dnf clean all \
4340 && rm -rf /var/cache/yum
4441
4542# FIXME @TL workaround until Amazon Linux gets a pipx package
4643# FIXME @TL --break-system-packages not supported until Python 3.11.
47- RUN pip3 install --no-cache-dir --upgrade \
48- pipx==1.7.1 \
49- && if pip3 list --outdated | tee -a /dev/stderr | grep -q -e '^pipx ' ; then \
50- exit 1 ; \
51- fi
44+ RUN pip3 install --no-cache-dir --upgrade pipx==1.7.1
5245
5346RUN pipx ensurepath --global \
5447 && pipx install --global \
5548 cfn-policy-validator==0.0.36 \
5649 json2yaml==1.2.0 \
5750 yamlpath==3.8.2 \
58- yq==3.4.3 \
59- && if pipx upgrade-all --global | grep -q -e . ; then \
60- pipx upgrade-all --global ; \
61- exit 1 ; \
62- fi
51+ yq==3.4.3
6352
6453RUN chmod 777 /opt \
6554 && adduser --home-dir "${USER_HOME}" --uid "${USER_ID}" "${USER_NAME}"
You can’t perform that action at this time.
0 commit comments