Skip to content

Commit

Permalink
Merge pull request #6 from JacekZubielik/dev
Browse files Browse the repository at this point in the history
Lint configuration
  • Loading branch information
JacekZubielik authored May 7, 2024
2 parents 8f7435d + 18dc3e6 commit 6b139eb
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 24 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 }}
16 changes: 13 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ on:
branches: [main]
paths-ignore:
- '**.md'

workflow_dispatch:

permissions: { }
# contents: write

jobs:
linter:
Expand All @@ -19,7 +19,6 @@ jobs:
permissions:
contents: read
packages: read
# To report GitHub Actions status checks
statuses: write

steps:
Expand All @@ -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 }}
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -111,6 +110,7 @@ jobs:
prerelease: false
generate_release_notes: true
body_path: ${{ github.workspace }}-CHANGELOG.txt
token: ${{ secrets.GITHUB_TOKEN }}

image:
needs: [release]
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,29 +29,29 @@ 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
```

Add the `dtparam=spi=on` line to the file and save it.

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
```

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
```
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6b139eb

Please sign in to comment.