diff --git a/.github/workflows/Docker-CI.yml b/.github/workflows/CI-docker.yml similarity index 75% rename from .github/workflows/Docker-CI.yml rename to .github/workflows/CI-docker.yml index cc53d05..461e30e 100644 --- a/.github/workflows/Docker-CI.yml +++ b/.github/workflows/CI-docker.yml @@ -1,4 +1,4 @@ -name: Docker CI +name: Docker Build CI on: push: @@ -7,14 +7,16 @@ on: paths-ignore: - '**.md' - LICENSE + workflow_dispatch: jobs: docker: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - - name: Checkout - uses: actions/checkout@v3 + - uses: actions/checkout@v3 + with: + submodules: recursive - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 @@ -28,7 +30,6 @@ jobs: - name: Build and push uses: docker/build-push-action@v4 with: - context: . platforms: linux/amd64, linux/arm64 push: true - tags: lychee0/finalrip-dashboard:latest + tags: lychee0/finalrip-dashboard:dev diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 87d9ea1..368e811 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -29,9 +29,9 @@ jobs: with: node-version: 20 - - uses: pnpm/action-setup@v2 + - uses: pnpm/action-setup@v4 with: - version: 8 + version: 9 - name: CI run: | diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml new file mode 100644 index 0000000..56bc2ab --- /dev/null +++ b/.github/workflows/Release.yml @@ -0,0 +1,53 @@ +name: Release + +on: + workflow_dispatch: + + push: + tags: + - 'v*' + +jobs: + docker: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v3 + with: + submodules: recursive + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: lychee0 + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Docker meta + id: meta + uses: docker/metadata-action@v5 + with: + images: | + lychee0/finalrip-dashboard + tags: | + latest + ${{ github.ref_name }} + + - name: Build and push + uses: docker/build-push-action@v4 + with: + platforms: linux/amd64, linux/arm64 + push: true + tags: ${{ steps.meta.outputs.tags }} + + github: + needs: [docker] + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v3 + with: + submodules: recursive + + - name: Release + uses: softprops/action-gh-release@v2