Skip to content

Commit

Permalink
fix: broken play-dl library - ALTERNATIVE FIX (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
DestroyCom authored Jul 5, 2024
2 parents 17e6492 + c92db10 commit 07c1ac7
Show file tree
Hide file tree
Showing 5 changed files with 276 additions and 133 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build-playdl-forked.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Docker build forked PlayDL
on:
workflow_call:
workflow_dispatch:
inputs:
tag:
description: 'Tag to use for the image'
required: true

jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
ref: release
fetch-depth: 0
- name: Replace package.json
run: |
rm -rf package.json
rm -rf package-lock.json
cp -r package.json.dupe package.json
npm install
- name: Get Latest Tag
id: latest_tag
uses: WyriHaximus/github-action-get-previous-tag@v1
- name: Echo latest tag
run: echo '${{ steps.latest_tag.outputs.tag }}'
- name: Kaniko build
uses: aevea/action-kaniko@master
with:
image: destcom/stroycord
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
tag: 'playdl-forked-${{ github.event.inputs.tag || steps.latest_tag.outputs.tag }}'
tag_with_latest: false
build_file: ./StroyCord.Dockerfile
6 changes: 5 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ jobs:
needs: create_tag
uses: ./.github/workflows/build.yml
secrets: inherit
build_playdl_forked:
needs: create_tag
uses: ./.github/workflows/build-playdl-forked.yml
secrets: inherit
release:
needs: [build]
needs: [build, build_playdl_forked]
uses: ./.github/workflows/release.yml
secrets: inherit
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
version: "3"
version: '3'

services:
stroycord:
container_name: stroycord
image: stroycord:latest
image: destcom/stroycord:latest
build:
context: .
dockerfile: StroyCord.Dockerfile
Expand Down
Loading

0 comments on commit 07c1ac7

Please sign in to comment.