Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete .github/workflows directory #215

Merged
merged 9 commits into from
Oct 6, 2023
3 changes: 1 addition & 2 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# These are supported funding model platforms

github: mtthidoteu
ko_fi: mtthidoteu
open_collective: wizarr
24 changes: 0 additions & 24 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

24 changes: 0 additions & 24 deletions .github/ISSUE_TEMPLATE/not-working.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

# Get the Release Version from .github/latest
- name: Get the Release Version from .github/latest
id: get_version
run: echo "::set-output name=version::$(cat .github/latest)"

# Set up Docker Buildx
- name: Set up Docker Buildx
id: buildx
Expand All @@ -41,6 +46,8 @@ jobs:
context: .
file: ./Dockerfile
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}-${{ steps.get_version.outputs.version }}
platforms: linux/amd64,linux/arm64,linux/arm64/v7,linux/arm64/v8
provenance: false
23 changes: 10 additions & 13 deletions .github/workflows/beta-release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Create Pre-Release on Version Change
name: Pre-Release on Version Change

on:
push:
Expand All @@ -8,27 +8,22 @@ on:
jobs:
check-version-and-create-release:
runs-on: ubuntu-latest

steps:
# Checkout the repo
- 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
# Get the previous package version from .github/latest
- name: Get previous package version from .github/latest
id: get_prev_version
run: echo "::set-output name=prev_version::$(git show HEAD^:package.json | jq -r '.version')"
run: echo "::set-output name=prev_version::$(cat .github/latest)"

# Get the current package version from .github/latest
- name: Get current package version
id: get_current_version
run: echo "::set-output name=current_version::$(jq -r '.version' package.json)"
run: echo "::set-output name=current_version::$(cat .github/latest)"

# Compare the previous and current versions
- name: Compare versions
id: compare_versions
run: |
Expand All @@ -41,11 +36,13 @@ jobs:
echo "::set-output name=version_changed::false"
fi

# Generate Release Notes
- 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 }}))"

# Create Pre-Release
- name: Create Pre-Release
if: steps.compare_versions.outputs.version_changed == 'true'
env:
Expand Down
70 changes: 70 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Release Docker Image CI

on:
release:
types: [created]

permissions:
packages: write

env:
REGISTRY: ghcr.io
IMAGE_NAME: wizarrrr/wizarr

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

# Get the Release Version
- name: Get the Release Version
id: get_version
run: echo "::set-output name=version::${{ github.event.release.tag_name }}"

# Do not build if the release is a pre-release
- name: Only if the release is not a pre-release
if: github.event.release.prerelease == true
run: exit 1

# Update .github/latest with the Release Version
- name: Update .github/latest with the Release Version
run: echo "${{ github.event.release.tag_name }}" > .github/latest

# Commit the changes to .github/latest using token
- name: Commit the changes to .github/latest
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git add .github/latest
git commit -m "Update .github/latest to ${{ github.event.release.tag_name }}"
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git push

# 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
platforms: linux/amd64,linux/arm64,linux/arm64/v7,linux/arm64/v8
provenance: false
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.get_version.outputs.version }}
28 changes: 23 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
---

<p align="center">
<img src="./frontend/src/assets/img/wizar.png" height="200">
<img src="https://raw.githubusercontent.com/Wizarrrr/wizarr/master/frontend/src/assets/img/wizard.png" height="200">
<br/>
<br/>
<a href="https://github.com/wizarrrr/wizarr">
Expand Down Expand Up @@ -32,14 +32,22 @@
<img alt="Github Issue" src="https://img.shields.io/github/issues/wizarrrr/wizarr"/>
</a>
<a href="https://github.com/Wizarrrr/wizarr/actions/workflows/docker-build.yml">
<img alt="Github Build" src="https://img.shields.io/github/actions/workflow/status/wizarrrr/wizarr/docker-build.yml"/>
<img alt="Github Build" src="https://img.shields.io/github/actions/workflow/status/wizarrrr/wizarr/ci.yml"/>
</a>
</p>

---

Wizarr is a automatic user invitation system for Plex and Jellyfin. Create a unique link and share it to a user and they will be invited to your Media Server after they complete there signup proccess! They can even be guided to download the clients and read instructions on how to use your media software!

## Where is V2?

Wizarr V2 has moved to the v2 branch [here](https://github.com/Wizarrrr/wizarr/tree/v2), your still more than welcome to use v2 however it will no longer be supported, we recommend using our new version, trust us it's 🔥.

## V3 upgradable from V2?

**NO**, we tried our best to make it work but V3 has too much awesomeness, please create a new container and use a **NEW DATABASE**, V3 does not require any env variables like V2 did, so please make sure to follow the below Compose or Docker configs exactly.

## Major Features Include

- Automatic Invitation to your Media Server (Plex, Jellyfin)
Expand Down Expand Up @@ -79,7 +87,7 @@ docker run -d \
--name wizarr \
-p 5690:5690 \
-v ./wizarr/database:/data/database \
ghcr.io/wizarrrr/wizarr:v3-beta
ghcr.io/wizarrrr/wizarr:latest
```

```
Expand All @@ -88,15 +96,25 @@ version: "3.5"
services:
wizarr:
container_name: wizarr
image: ghcr.io/wizarrrr/wizarr:v3-beta
image: ghcr.io/wizarrrr/wizarr:latest
ports:
- 5690:5690
volumes:
- ./wizarr/database:/data/database
```

## Documentation

Our documentation is lacking since we upgraded from V2 to V3, we appologise for this and we welcome you to come onto our [Discord](https://discord.gg/XXCz7aM3ak) and ask for a member of staff, we would be happy to help.

If you want to help contribute to Wizarr by building V3's documentation we would really appreciate it, again join the [Discord](https://discord.gg/XXCz7aM3ak) and we can get you started.

Check out our documentation for instructions on how to install and run Wizarr!
https://github.com/Wizarrrr/wizarr/tree/v3-beta/docs/setup
https://github.com/Wizarrrr/wizarr/docs/setup

<a href="https://discord.gg/XXCz7aM3ak">
<img alt="Chat on Discord" src="https://img.shields.io/discord/1020742926856372224"/>
</a>

## Thank you

Expand Down
Loading