Skip to content

Commit

Permalink
Merge v3-beta into master
Browse files Browse the repository at this point in the history
  • Loading branch information
realashleybailey committed Oct 6, 2023
2 parents bb020fd + db179f9 commit 0d8f80c
Show file tree
Hide file tree
Showing 751 changed files with 99,640 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"folders": [
{
"name": "Frontend",
"path": "frontend"
},
{
"name": "Documentation",
"path": "docs"
},
{
"name": "Backend",
"path": "backend"
},
{
"name": "Other",
"path": "./"
}
],
"launch": {
"version": "0.2.0",
"compounds": [
{
"name": "Run All",
"configurations": [
"Run Backend: dev",
"Run Frontend: dev"
]
}
]
}
}
24 changes: 24 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
venv/
.env
.DS_Store
.gitignore
.git
.github
.idea
.buildHelper.txt
node_modules
__pycache__

# All hidden files
.*

Dockerfile
README.md
babel.cfg
unraid.xml

screenshots/
docs/
testing/
database/
delete/
66 changes: 66 additions & 0 deletions .github/workflows/beta-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Create Pre-Release on Version Change

on:
push:
branches:
- v3-beta

jobs:
check-version-and-create-release:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "14"

- name: Install dependencies
run: npm install

- name: Get previous package version
id: get_prev_version
run: echo "::set-output name=prev_version::$(git show HEAD^:package.json | jq -r '.version')"

- name: Get current package version
id: get_current_version
run: echo "::set-output name=current_version::$(jq -r '.version' package.json)"

- name: Compare versions
id: compare_versions
run: |
if [[ "${{ steps.get_prev_version.outputs.prev_version }}" != "${{ steps.get_current_version.outputs.current_version }}" ]]; then
echo "Version changed. Creating Pre-Release."
echo "New version: ${{ steps.get_current_version.outputs.current_version }}, Previous version: ${{ steps.get_prev_version.outputs.prev_version }}"
echo "::set-output name=version_changed::true"
else
echo "Version unchanged. No Pre-Release needed."
echo "::set-output name=version_changed::false"
fi
- name: Generate Release Notes
id: generate_release_notes
run: |
echo "::set-output name=release_notes::$(git log --pretty=format:"- %s%n" $(git rev-list ${{ github.event.before }}..${{ github.sha }}))"
- name: Create Pre-Release
if: steps.compare_versions.outputs.version_changed == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Create a new Pre-Release using GitHub API
# Replace ":owner", ":repo", and other placeholders with actual values
# You can use curl or other tools to interact with the API
curl -X POST \
-H "Authorization: token $GITHUB_TOKEN" \
-d '{
"tag_name": "'${{ steps.get_current_version.outputs.current_version }}'",
"target_commitish": "v3-beta",
"name": "Pre-Release V'${{ steps.get_current_version.outputs.current_version }}'",
"body": "${{ steps.generate_release_notes.outputs.release_notes }}",
"prerelease": true
}' \
"https://api.github.com/repos/wizarrrr/wizarr/releases"
46 changes: 46 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Docker Build and Push

on:
push:
branches:
- v3-beta

permissions:
packages: write

env:
REGISTRY: ghcr.io
IMAGE_NAME: wizarrrr/wizarr
IMAGE_TAG: v3-beta

jobs:
build:
runs-on: ubuntu-latest
steps:
# Checkout the repo
- name: Checkout
uses: actions/checkout@v2

# Set up Docker Buildx
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3

# Login to GHCR
- name: Login to GHCR
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# Build and push the image
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}
platforms: linux/amd64,linux/arm64,linux/arm64/v7,linux/arm64/v8
provenance: false
Loading

0 comments on commit 0d8f80c

Please sign in to comment.