Skip to content

Commit c1052fc

Browse files
committed
Merge branch 'dev'
2 parents c75f580 + c069e4f commit c1052fc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+9576
-4911
lines changed

.dockerignore

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Ignore everything
2+
*
3+
4+
# Allow files and directories
5+
!/main.py
6+
!/Pipfile
7+
!/Pipfile.lock
8+
!/modules
9+
!/util
10+
!/scripts
11+
!/config
12+
!/VERSION
13+
!/start.sh
14+
!/exclude-file.txt
15+
16+
# Ignore unnecessary files inside allowed directories
17+
# This should go after the allowed directories
18+
**/*~
19+
**/*.log
20+
**/.DS_Store
21+
**/Thumbs.db
22+
**/config.yml

.github/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
custom: ['https://www.buymeacoffee.com/drazzilb08']

.github/workflows/dev.yml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Docker Develop Release
2+
3+
on:
4+
push:
5+
branches: [ dev ]
6+
paths-ignore:
7+
- '**/README.md'
8+
- '**/.github/**'
9+
pull_request:
10+
types:
11+
- closed
12+
branches:
13+
- dev
14+
paths-ignore:
15+
- '**/README.md'
16+
- '**/.github/**'
17+
18+
jobs:
19+
20+
docker-dev:
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
- name: Set up QEMU
27+
uses: docker/setup-qemu-action@v3
28+
- name: Set up Docker Buildx
29+
uses: docker/setup-buildx-action@v3
30+
- name: Login to Docker Hub
31+
uses: docker/login-action@v3
32+
with:
33+
username: ${{ secrets.DOCKER_USERNAME }}
34+
password: ${{ secrets.DOCKER_TOKEN }}
35+
- name: Login to GitHub Container Registry
36+
uses: docker/login-action@v3
37+
with:
38+
registry: ghcr.io
39+
username: ${{ secrets.GH_USERNAME }}
40+
password: ${{ secrets.GH_TOKEN }}
41+
- name: Build and push
42+
id: docker_build
43+
uses: docker/build-push-action@v5
44+
with:
45+
context: .
46+
file: ./Dockerfile
47+
platforms: linux/amd64,linux/arm64
48+
build-args: |
49+
"BRANCH=dev"
50+
push: true
51+
tags: |
52+
${{ secrets.DOCKER_USERNAME }}/daps:dev
53+
ghcr.io/drazzilb08/daps:dev

.github/workflows/inactive.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Close inactive issues
2+
on:
3+
schedule:
4+
- cron: "30 1 * * *"
5+
6+
jobs:
7+
close-issues:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
issues: write
11+
pull-requests: write
12+
steps:
13+
- uses: actions/stale@v5
14+
with:
15+
days-before-issue-stale: 7
16+
days-before-issue-close: 3
17+
stale-issue-label: "stale"
18+
stale-issue-message: "This issue is stale because it has been open for 30 days with no activity."
19+
close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale."
20+
days-before-pr-stale: -1
21+
days-before-pr-close: -1
22+
repo-token: ${{ secrets.GH_TOKEN }}

.github/workflows/latest.yml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Docker Latest Release
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
paths-ignore:
7+
- '**/README.md'
8+
- '**/.github/**'
9+
pull_request:
10+
types:
11+
- closed
12+
branches:
13+
- master
14+
paths-ignore:
15+
- '**/README.md'
16+
- '**/.github/**'
17+
18+
jobs:
19+
20+
docker-latest:
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
- name: Set up QEMU
27+
uses: docker/setup-qemu-action@v3
28+
- name: Set up Docker Buildx
29+
uses: docker/setup-buildx-action@v3
30+
- name: Login to Docker Hub
31+
uses: docker/login-action@v3
32+
with:
33+
username: ${{ secrets.DOCKER_USERNAME }}
34+
password: ${{ secrets.DOCKER_TOKEN }}
35+
- name: Login to GitHub Container Registry
36+
uses: docker/login-action@v3
37+
with:
38+
registry: ghcr.io
39+
username: ${{ secrets.GH_USERNAME }}
40+
password: ${{ secrets.GH_TOKEN }}
41+
- name: Build and push
42+
id: docker_build
43+
uses: docker/build-push-action@v5
44+
with:
45+
context: .
46+
file: ./Dockerfile
47+
platforms: linux/amd64,linux/arm64
48+
build-args: |
49+
"BRANCH=${{ vars.GITHUB_REF_NAME }}"
50+
push: true
51+
tags: |
52+
${{ secrets.DOCKER_USERNAME }}/daps:latest
53+
ghcr.io/drazzilb08/daps:latest

.github/workflows/tag.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Tag
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
jobs:
8+
tag-new-versions:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
token: ${{ secrets.GH_PAT }}
14+
fetch-depth: 2
15+
- uses: salsify/[email protected]
16+
with:
17+
version-command: |
18+
cat VERSION

.github/workflows/version.yml

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Docker Version Release
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
jobs:
9+
10+
docker-version:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
- name: Set up QEMU
19+
uses: docker/setup-qemu-action@v3
20+
- name: Set up Docker Buildx
21+
uses: docker/setup-buildx-action@v3
22+
23+
- name: Get the version
24+
id: get_version
25+
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
26+
27+
- name: Extract branch name
28+
shell: bash
29+
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
30+
id: extract_branch
31+
32+
- name: Login to Docker Hub
33+
uses: docker/login-action@v3
34+
with:
35+
username: ${{ secrets.DOCKER_USERNAME }}
36+
password: ${{ secrets.DOCKER_TOKEN }}
37+
- name: Login to GitHub Container Registry
38+
uses: docker/login-action@v3
39+
with:
40+
registry: ghcr.io
41+
username: ${{ secrets.GH_USERNAME }}
42+
password: ${{ secrets.GH_TOKEN }}
43+
44+
- name: Build and push
45+
id: docker_build
46+
uses: docker/build-push-action@v5
47+
with:
48+
context: .
49+
file: ./Dockerfile
50+
platforms: linux/amd64,linux/arm64
51+
build-args: |
52+
"BRANCH=${{ steps.extract_branch.outputs.branch }}"
53+
push: true
54+
tags: |
55+
${{ secrets.DOCKER_USERNAME }}/daps:${{ steps.get_version.outputs.VERSION }}
56+
ghcr.io/drazzilb08/daps:${{ steps.get_version.outputs.VERSION }}

0 commit comments

Comments
 (0)