diff --git a/.github/workflows/docker-update-readme.yml b/.github/workflows/dockerhub-description.yml similarity index 72% rename from .github/workflows/docker-update-readme.yml rename to .github/workflows/dockerhub-description.yml index f7462cd..503c93a 100644 --- a/.github/workflows/docker-update-readme.yml +++ b/.github/workflows/dockerhub-description.yml @@ -1,21 +1,13 @@ --- name: Update Docker Hub description - on: - pull_request: - branches: [main] - types: - - closed - push: - tags: - - "v*.*.*" - paths-ignore: - - 'CONTRIBUTING.md' - - 'docs/**' - + branches: + - main + paths: + - README.md + - .github/workflows/dockerhub-description.yml workflow_dispatch: - jobs: dockerHubDescription: runs-on: ubuntu-latest @@ -29,3 +21,4 @@ jobs: password: ${{ secrets.DOCKERHUB_TOKEN }} repository: gorabbit/docker-oled-evo-sabre readme-filepath: ./README.md + short-description: ${{ github.event.repository.description }} diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 8a2d5c7..6fb1986 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -6,10 +6,10 @@ on: branches: [main] paths-ignore: - '**.md' + workflow_dispatch: permissions: { } - # contents: write jobs: linter: @@ -19,7 +19,6 @@ jobs: permissions: contents: read packages: read - # To report GitHub Actions status checks statuses: write steps: @@ -31,5 +30,16 @@ jobs: - name: Lint code uses: github/super-linter@v6 env: - VALIDATE_PYTHON: true + VALIDATE_PYTHON: false + VALIDATE_PYTHON_RUFF: false + VALIDATE_PYTHON_PYLINT: false + VALIDATE_PYTHON_MYPY: false + VALIDATE_PYTHON_ISORT: false + VALIDATE_PYTHON_FLAKE8: false + VALIDATE_PYTHON_BLACK: false + VALIDATE_MARKDOWN: false + VALIDATE_DOCKERFILE_HADOLINT: false + VALIDATE_CHECKOV: false + VALIDATE_JSCPD: false + VALIDATE_GITHUB_ACTIONS: false GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1ff1e3b..c4a5139 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -102,7 +102,6 @@ jobs: GITHUB_REPOSITORY: jacekzubielik/docker-oled-evo-sabre with: name: ${{ github.ref_name }} - # tag_name: v${{ steps.fetch-version.outputs.version }} tag_name: ${{ needs.create_release.outputs.tag-name }} files: | release_${{ matrix.release_suffix }} @@ -111,6 +110,7 @@ jobs: prerelease: false generate_release_notes: true body_path: ${{ github.workspace }}-CHANGELOG.txt + token: ${{ secrets.GITHUB_TOKEN }} image: needs: [release] diff --git a/Dockerfile b/Dockerfile index ace8843..4a61d53 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,10 +14,11 @@ RUN mkdir /app \ && apt-get -y install curl telnet \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \ - && useradd -u 1000 -G sudo -U -m -s /bin/bash oleduser \ + # && useradd -u 1000 -G sudo -U -m -s /bin/bash oleduser \ + && useradd -u 1000 -G 1000 -U -m -s /bin/bash oleduser \ && chown oleduser:oleduser /app \ # Allow sudoers - && echo "oleduser ALL=(ALL) NOPASSWD: /bin/chown" >> /etc/sudoers + # && echo "oleduser ALL=(ALL) NOPASSWD: /bin/chown" >> /etc/sudoers WORKDIR /app diff --git a/README.md b/README.md index 6b9ef26..ef36d14 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ To enable SPI support on a Raspberry Pi, you can follow these steps: 1. Add `dtparam=spi=on` to the `/boot/config.txt` file using a text editor. You can use the `nano` text editor for this: -``` +```bash sudo nano /boot/config.txt ``` @@ -37,7 +37,7 @@ sudo nano /boot/config.txt 2. To increase the SPI buffer size to display a bitmap logo during startup, edit the `/boot/cmdline.txt` file: -``` +```bash sudo nano /boot/cmdline.txt ``` @@ -45,13 +45,13 @@ Add `spidev.bufsiz=8192` to the end of the line and save it. 3. Check if the SPI port is working by typing: -``` +```bash ls -l /dev/spidev* ``` You should see output similar to the following: -``` +```bash crw-rw---- 1 root spi 153, 0 Oct 23 11:15 /dev/spidev0.0 crw-rw---- 1 root spi 153, 1 Oct 23 11:15 /dev/spidev0.1 ``` @@ -104,7 +104,7 @@ You can change the contrast level within the range of 0 to 255 in the `/appdata/ For example: -``` +```bash contrast_day=150 contrast_night=10 contrast_screensave=10