1 Commits

2 changed files with 21 additions and 27 deletions

View File

@@ -7,26 +7,26 @@ on:
- cron: "@weekly"
jobs:
# sonar:
# runs-on: ubuntu-latest
# steps:
# - name: Check out repository code
# uses: actions/checkout@v4.2.2
# with:
# fetch-depth: 0
sonar:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4.2.2
with:
fetch-depth: 0
# - uses: hadolint/hadolint-action@v3.1.0
# with:
# dockerfile: Dockerfile
# output-file: hadolint.out
# format: sonarqube
# no-fail: true
- uses: hadolint/hadolint-action@v3.1.0
with:
dockerfile: Dockerfile
output-file: hadolint.out
format: sonarqube
no-fail: true
# - name: SonarQube Scan
# uses: SonarSource/sonarqube-scan-action@v5.2.0
# env:
# SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
# SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST_URL }}
- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v5.0.0
env:
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST_URL }}
release:
runs-on: ubuntu-latest
@@ -42,7 +42,7 @@ jobs:
echo "{\"insecure-registries\": [\"${{ vars.PACKAGES_REGISTRY_URL }}\"]}" > /etc/docker/daemon.json
- name: Check out repository code
uses: actions/checkout@v4.3.0
uses: actions/checkout@v4.2.2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

View File

@@ -4,14 +4,8 @@ LABEL maintainer="Luke Tainton <luke@tainton.uk>"
ENV PIPX_BIN_DIR=/usr/local/bin
RUN wget -q -O- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash && \
export NVM_DIR="$HOME/.nvm" && \
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" && \
nvm install 24 && \
add-apt-repository ppa:longsleep/golang-backports && \
apt-get update && \
apt-get install -y golang-go pipx && \
RUN apt-get update && \
apt-get install -y pipx && \
apt-get clean && \
pipx install poetry && \
pipx install uv