Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .github/FUNDING.yml

This file was deleted.

26 changes: 1 addition & 25 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,4 @@ updates:
schedule:
interval: daily
time: "10:00"
open-pull-requests-limit: 10
ignore:
- dependency-name: "@types/node"
versions:
- 15.0.0
- dependency-name: eslint-config-xo-typescript
versions:
- 0.37.0
- 0.38.0
- 0.39.0
- dependency-name: husky
versions:
- 5.0.9
- 5.1.0
- 5.1.1
- 5.1.2
- 5.1.3
- 5.2.0
- dependency-name: "@types/spotify-web-api-node"
versions:
- 5.0.0
- 5.0.1
- dependency-name: "@discordjs/opus"
versions:
- 0.4.0
open-pull-requests-limit: 10
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ jobs:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v2
- uses: actions/checkout@main
- uses: actions/setup-node@main
with:
node-version: '22'
cache: 'yarn'
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/pr-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- completed

env:
REGISTRY_IMAGE: ghcr.io/museofficial/muse
REGISTRY_IMAGE: ghcr.io/whytf/muse

jobs:
release-and-comment:
Expand All @@ -19,17 +19,17 @@ jobs:
id-token: write
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
uses: docker/login-action@master
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@master

- name: Download images
uses: actions/download-artifact@v4
uses: actions/download-artifact@main
with:
path: /tmp/images
pattern: image-linux-*
Expand All @@ -44,7 +44,7 @@ jobs:
docker load -i /tmp/images/image-linux-arm64.tar

- name: Download SHA
uses: actions/download-artifact@v4
uses: actions/download-artifact@main
with:
path: /tmp/SHA
pattern: sha
Expand All @@ -62,7 +62,7 @@ jobs:
docker push ${{ env.REGISTRY_IMAGE }}:${{ env.SHA }}-linux-arm64

- name: Download Docker metadata
uses: actions/download-artifact@v4
uses: actions/download-artifact@main
with:
path: /tmp/metadata
pattern: metadata
Expand All @@ -71,12 +71,12 @@ jobs:

- name: Read the metadata.json file
id: metadata_reader
uses: juliangruber/read-file-action@v1.0.0
uses: juliangruber/read-file-action@master
with:
path: /tmp/metadata/metadata/metadata.json

- name: Download PR number
uses: actions/download-artifact@v4
uses: actions/download-artifact@main
with:
path: /tmp/pull_request_number
pattern: pull_request_number
Expand All @@ -93,7 +93,7 @@ jobs:
docker buildx imagetools create $(cat /tmp/metadata/metadata/metadata.json | jq -cr '.tags | map("-t " + .) | join(" ")') ${{ env.REGISTRY_IMAGE }}:${{ env.SHA }}-linux-amd64 ${{ env.REGISTRY_IMAGE }}:${{ env.SHA }}-linux-arm64

- name: Create comment
uses: marocchino/sticky-pull-request-comment@v2
uses: marocchino/sticky-pull-request-comment@main
with:
header: "pr-release"
number: ${{ env.PR_NUMBER }}
Expand Down
21 changes: 9 additions & 12 deletions .github/workflows/pr-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build snapshot of PR
on: pull_request

env:
REGISTRY_IMAGE: ghcr.io/museofficial/muse
REGISTRY_IMAGE: ghcr.io/whytf/muse

jobs:
build:
Expand All @@ -12,12 +12,9 @@ jobs:
matrix:
runner-platform:
- ubuntu-latest
- namespace-profile-default-arm64
include:
- runner-platform: ubuntu-latest
build-arch: linux/amd64
- runner-platform: namespace-profile-default-arm64
build-arch: linux/arm64
runs-on: ${{ matrix.runner-platform }}
steps:
- name: Prepare
Expand All @@ -27,28 +24,28 @@ jobs:

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
uses: docker/metadata-action@master
with:
images: ${{ env.REGISTRY_IMAGE }}
tags: type=ref,event=pr

- name: Set up Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@master

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
uses: docker/login-action@master
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Get current time
uses: josStorer/get-current-time@v2
uses: josStorer/get-current-time@master
id: current-time

- name: Build
id: build
uses: docker/build-push-action@v6
uses: docker/build-push-action@master
with:
outputs: type=docker,dest=/tmp/image-${{ env.PLATFORM_PAIR }}.tar
platforms: ${{ matrix.build-arch }}
Expand All @@ -63,7 +60,7 @@ jobs:
run: echo $DOCKER_METADATA_OUTPUT_JSON > /tmp/metadata.json

- name: Upload metadata
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@main
with:
name: metadata
path: /tmp/metadata.json
Expand All @@ -74,14 +71,14 @@ jobs:
echo "${{ github.sha }}" > /tmp/sha.txt

- name: Upload SHA
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@main
with:
name: sha
path: /tmp/sha.txt
overwrite: true

- name: Upload image
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@main
with:
name: image-${{ env.PLATFORM_PAIR }}
path: /tmp/image-${{ env.PLATFORM_PAIR }}.tar
Expand Down
60 changes: 13 additions & 47 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,18 @@ on:
- 'v*'

env:
REGISTRY_IMAGE: ghcr.io/museofficial/muse
REGISTRY_IMAGE: ghcr.io/whytf/muse

jobs:
publish:
strategy:
matrix:
runner-platform:
- ubuntu-latest
- namespace-profile-default-arm64
include:
- runner-platform: ubuntu-latest
build-arch: linux/amd64
tagged-platform: amd64
- runner-platform: namespace-profile-default-arm64
build-arch: linux/arm64
tagged-platform: arm64
runs-on: ${{ matrix.runner-platform }}
permissions:
contents: read
Expand All @@ -30,33 +26,25 @@ jobs:
id-token: write
steps:
- name: Set up Buildx
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
uses: docker/setup-buildx-action@master

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
uses: docker/login-action@master
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Get current time
uses: josStorer/get-current-time@v2
uses: josStorer/get-current-time@master
id: current-time

- name: Build and push
id: docker_build
uses: docker/build-push-action@v6
uses: docker/build-push-action@master
with:
push: true
tags: |
codetheweb/muse:${{ github.sha }}-${{ matrix.tagged-platform }}
${{ env.REGISTRY_IMAGE }}:${{ github.sha }}-${{ matrix.tagged-platform }}
tags: ${{ env.REGISTRY_IMAGE }}:${{ github.sha }}-${{ matrix.tagged-platform }}
platforms: ${{ matrix.build-arch }}
build-args: |
COMMIT_HASH=${{ github.sha }}
Expand All @@ -72,55 +60,33 @@ jobs:
attestations: write
id-token: write
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@main

- name: Set up Buildx
uses: docker/setup-buildx-action@v1

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
uses: docker/setup-buildx-action@master

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
uses: docker/login-action@master
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Get tags (Docker Hub)
id: get-tags-dockerhub
uses: Surgo/docker-smart-tag-action@v1
with:
docker_image: codetheweb/muse

- name: Get tags (ghcr.io)
id: get-tags-ghcr
uses: Surgo/docker-smart-tag-action@v1
uses: Surgo/docker-smart-tag-action@main
with:
docker_image: ${{ env.REGISTRY_IMAGE }}

- name: Combine tags (Docker Hub)
run: docker buildx imagetools create $(echo '${{ steps.get-tags-dockerhub.outputs.tag }}' | tr "," "\0" | xargs -0 printf -- '-t %s ') 'codetheweb/muse:${{ github.sha }}-arm64' 'codetheweb/muse:${{ github.sha }}-amd64'

- name: Combine tags (GitHub Container Registry)
run: docker buildx imagetools create $(echo '${{ steps.get-tags-ghcr.outputs.tag }}' | tr "," "\0" | xargs -0 printf -- '-t %s ') '${{ env.REGISTRY_IMAGE }}:${{ github.sha }}-arm64' '${{ env.REGISTRY_IMAGE }}:${{ github.sha }}-amd64'

- name: Update Docker Hub description
uses: peter-evans/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
repository: codetheweb/muse

release:
name: Create GitHub release
runs-on: ubuntu-latest
needs: combine
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@main

- name: Get version from tag
id: tag_name
Expand All @@ -130,13 +96,13 @@ jobs:

- name: Get Changelog Entry
id: changelog_reader
uses: mindsers/changelog-reader-action@v2
uses: mindsers/changelog-reader-action@master
with:
version: ${{ steps.tag_name.outputs.current_version }}
path: ./CHANGELOG.md

- name: Create/update release
uses: ncipollo/release-action@v1
uses: ncipollo/release-action@main
with:
tag: v${{ steps.changelog_reader.outputs.version }}
name: Release v${{ steps.changelog_reader.outputs.version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: apexskier/github-release-commenter@v1
- uses: apexskier/github-release-commenter@main
with:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
comment-template: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/type-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ jobs:
name: Type Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v2
- uses: actions/checkout@main
- uses: actions/setup-node@main
with:
node-version: '22'
cache: 'yarn'
Expand Down
Loading
Loading