Skip to content

Commit 470ad90

Browse files
authored
Merge pull request #29 from rtuszik/dev
1.3.0
2 parents 906d80c + ddf0298 commit 470ad90

File tree

3 files changed

+70
-71
lines changed

3 files changed

+70
-71
lines changed

.github/workflows/docker.yml

Lines changed: 42 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,53 @@
11
name: StarWarden Build
22

33
on:
4-
release:
5-
types: [published]
6-
workflow_dispatch:
4+
release:
5+
types: [published]
6+
workflow_dispatch:
77

88
env:
9-
DOCKER_IMAGE: rtuszik/starwarden
9+
DOCKER_IMAGE: rtuszik/starwarden
1010

1111
jobs:
12-
build-and-push:
13-
runs-on: ubuntu-latest
14-
steps:
15-
- name: Checkout code
16-
uses: actions/checkout@v4
12+
build-and-push:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
1717

18-
- name: Set up Docker Buildx
19-
uses: docker/setup-buildx-action@v3
18+
- name: Set up Docker Buildx
19+
uses: docker/setup-buildx-action@v3
2020

21-
- name: Login to Docker Hub
22-
uses: docker/login-action@v3
23-
with:
24-
username: ${{ secrets.DOCKERHUB_USERNAME }}
25-
password: ${{ secrets.DOCKERHUB_TOKEN }}
26-
- name: Extract metadata (tags, labels) for Docker
27-
id: meta
28-
uses: docker/metadata-action@v5
29-
with:
30-
images: ${{ env.DOCKER_IMAGE }}
31-
tags: |
32-
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
33-
type=semver,pattern={{version}},enable=${{ github.event_name == 'release' }}
34-
type=semver,pattern={{major}}.{{minor}},enable=${{ github.event_name == 'release' }}
35-
type=ref,event=branch
36-
type=ref,event=pr
37-
type=sha,prefix=sha-
21+
- name: Login to Docker Hub
22+
uses: docker/login-action@v3
23+
with:
24+
username: ${{ secrets.DOCKERHUB_USERNAME }}
25+
password: ${{ secrets.DOCKERHUB_TOKEN }}
26+
- name: Extract metadata (tags, labels) for Docker
27+
id: meta
28+
uses: docker/metadata-action@v5
29+
with:
30+
images: ${{ env.DOCKER_IMAGE }}
31+
tags: |
32+
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
33+
type=semver,pattern={{version}},enable=${{ github.event_name == 'release' }}
34+
type=semver,pattern={{major}}.{{minor}},enable=${{ github.event_name == 'release' }}
35+
type=ref,event=branch
36+
type=ref,event=pr
37+
type=sha,prefix=sha-
3838
39-
- name: Build and push
40-
id: docker_build
41-
uses: docker/build-push-action@v6
42-
with:
43-
context: .
44-
file: ./Dockerfile
45-
push: ${{ github.event_name != 'pull_request' }}
46-
tags: ${{ steps.meta.outputs.tags }}
47-
labels: ${{ steps.meta.outputs.labels }}
48-
cache-from: type=registry,ref=${{ env.DOCKER_IMAGE }}:buildcache
49-
cache-to: type=registry,ref=${{ env.DOCKER_IMAGE }}:buildcache,mode=max
39+
- name: Build and push
40+
id: docker_build
41+
uses: docker/build-push-action@v6
42+
with:
43+
context: .
44+
file: ./Dockerfile
45+
push: ${{ github.event_name != 'pull_request' }}
46+
tags: ${{ steps.meta.outputs.tags }}
47+
labels: ${{ steps.meta.outputs.labels }}
48+
cache-from: type=registry,ref=${{ env.DOCKER_IMAGE }}:buildcache
49+
cache-to: type=registry,ref=${{ env.DOCKER_IMAGE }}:buildcache,mode=max
50+
platforms: linux/amd64,linux/arm64
5051

51-
- name: Image digest
52-
run: echo ${{ steps.docker_build.outputs.digest }}
52+
- name: Image digest
53+
run: echo ${{ steps.docker_build.outputs.digest }}

.github/workflows/lint.yml

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,34 @@
11
name: Lint
22
on:
3-
push:
4-
branches-ignore: ["main"]
5-
pull_request:
6-
branches: ["main"]
7-
workflow_dispatch:
3+
pull_request:
4+
branches: ["main"]
5+
workflow_dispatch:
86

97
permissions: {}
108

119
jobs:
12-
lint:
13-
runs-on: ubuntu-latest
10+
lint:
11+
runs-on: ubuntu-latest
1412

15-
permissions:
16-
contents: read
17-
packages: read
18-
statuses: write
13+
permissions:
14+
contents: read
15+
packages: read
16+
statuses: write
1917

20-
steps:
21-
- name: Checkout Code
22-
uses: actions/checkout@v4
23-
with:
24-
fetch-depth: 0
18+
steps:
19+
- name: Checkout Code
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
2523

26-
- name: Lint Code Base
27-
uses: github/super-linter@v7
28-
env:
29-
VALIDATE_ALL_CODEBASE: true
30-
FIX_PYTHON_RUFF: true
31-
VALIDATE_PYTHON_RUFF: true
32-
FIX_MARKDOWN_PRETTIER: true
33-
VALIDATE_MARKDOWN_PRETTIER: true
34-
VALIDATE_GITLEAKS: true
35-
VALIDATE_GITHUB_ACTIONS: true
36-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
- name: Lint Code Base
25+
uses: github/super-linter@v7
26+
env:
27+
VALIDATE_ALL_CODEBASE: true
28+
FIX_PYTHON_RUFF: true
29+
VALIDATE_PYTHON_RUFF: true
30+
FIX_MARKDOWN_PRETTIER: true
31+
VALIDATE_MARKDOWN_PRETTIER: true
32+
VALIDATE_GITLEAKS: true
33+
VALIDATE_GITHUB_ACTIONS: true
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
PyGithub ==2.5.0
1+
PyGithub ==2.6.1
22
requests ==2.32.3
3-
python-dotenv==1.0.1
3+
python-dotenv==1.1.0
44
tqdm==4.67.1
5-
rich==13.9.4
5+
rich==14.0.0

0 commit comments

Comments
 (0)