From 4ac6a720877d06bede9ae972cfc1821641fa4e2e Mon Sep 17 00:00:00 2001 From: Carl Reid Date: Wed, 12 Feb 2025 11:29:54 +0100 Subject: [PATCH] Delete `.old` files --- .../workflows/Create_Release_And_Publish.old | 159 ---------------- .github/workflows/Nightly_Publish_Docker.old | 176 ------------------ .github/workflows/Publish_On_Tags.old | 117 ------------ .github/workflows/Release_Drafter.old | 46 ----- .github/workflows/labeler.old | 12 -- .github/workflows/lock.old | 26 --- 6 files changed, 536 deletions(-) delete mode 100644 .github/workflows/Create_Release_And_Publish.old delete mode 100644 .github/workflows/Nightly_Publish_Docker.old delete mode 100644 .github/workflows/Publish_On_Tags.old delete mode 100644 .github/workflows/Release_Drafter.old delete mode 100644 .github/workflows/labeler.old delete mode 100644 .github/workflows/lock.old diff --git a/.github/workflows/Create_Release_And_Publish.old b/.github/workflows/Create_Release_And_Publish.old deleted file mode 100644 index 27629a7e9..000000000 --- a/.github/workflows/Create_Release_And_Publish.old +++ /dev/null @@ -1,159 +0,0 @@ -name: Create release and publish - -on: - workflow_dispatch: - -jobs: - build: - runs-on: ubuntu-latest - env: - REF_NAME: ${{ github.ref_name }} - - steps: - - name: Setup dotnet - uses: actions/setup-dotnet@v1 - with: - dotnet-version: "7.0" - - - name: Setup Node.js - uses: actions/setup-node@v3 - with: - node-version: "18" - - - name: Checkout code - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Install GitVersion - uses: gittools/actions/gitversion/setup@v0 - with: - versionSpec: "5.x" - - - name: Determine Version - uses: gittools/actions/gitversion/execute@v0 - with: - useConfigFile: true - updateAssemblyInfo: true - targetPath: StreamMasterAPI - - - name: Install dependencies - run: | - sudo apt-get update && sudo apt-get -y upgrade - sudo apt-get install -yq git curl build-essential - - - name: Build project - run: | - git fetch --tags - latest_tag=$(git describe --tags $(git rev-list --tags --max-count=1)) - git checkout $latest_tag - - dotnet restore "StreamMasterAPI/StreamMasterAPI.csproj" - dotnet build "StreamMasterAPI/StreamMasterAPI.csproj" -c Debug >/dev/null - - cd streammasterwebui - npm install - npm run build - mkdir -p "$GITHUB_WORKSPACE/publish/wwwroot/" - cp -R build/* "$GITHUB_WORKSPACE/publish/wwwroot/" - cd .. - - cd StreamMasterAPI - dotnet publish --no-restore "StreamMasterAPI.csproj" -c Debug -o "$GITHUB_WORKSPACE/publish" /p:UseAppHost=false >/dev/null - - - name: Zip publish directory - run: | - cd publish - zip -r ../streammaster-${{ env.GitVersion_SemVer }}.zip . - - - name: Generate SHA256 hash for zip - run: | - cd publish - sha256sum ../streammaster-${{ env.GitVersion_SemVer }}.zip > ../streammaster-${{ env.GitVersion_SemVer }}.zip.sha256 - - - name: Tar publish directory - run: | - cd publish - tar -czvf ../streammaster-${{ env.GitVersion_SemVer }}.tar.gz . - - - name: Generate SHA256 hash for tar.gz - run: | - cd publish - sha256sum ../streammaster-${{ env.GitVersion_SemVer }}.tar.gz > ../streammaster-${{ env.GitVersion_SemVer }}.tar.gz.sha256 - - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions - with: - tag_name: v${{ env.GitVersion_SemVer }} - release_name: v${{ env.GitVersion_SemVer }} - draft: false - prerelease: false - - - name: Upload Release Asset (zip) - id: upload-release-asset-zip - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./streammaster-${{ env.GitVersion_SemVer }}.zip - asset_name: streammaster-${{ env.GitVersion_SemVer }}.zip - asset_content_type: application/zip - - - name: Upload SHA256 hash for zip - id: upload-sha256-zip - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./streammaster-${{ env.GitVersion_SemVer }}.zip.sha256 - asset_name: streammaster-${{ env.GitVersion_SemVer }}.zip.sha256 - asset_content_type: text/plain - - - name: Upload Release Asset (tar.gz) - id: upload-release-asset-tar-gz - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./streammaster-${{ env.GitVersion_SemVer }}.tar.gz - asset_name: streammaster-${{ env.GitVersion_SemVer }}.tar.gz - asset_content_type: application/gzip - - - name: Upload SHA256 hash for tar.gz - id: upload-sha256-tar-gz - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./streammaster-${{ env.GitVersion_SemVer }}.tar.gz.sha256 - asset_name: streammaster-${{ env.GitVersion_SemVer }}.tar.gz.sha256 - asset_content_type: text/plain - - - name: Upload Dockerfile - id: Dockerfile - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./Dockerfile - asset_name: Dockerfile - asset_content_type: text/plain - - - name: Upload docker-compose.yml - id: docker-compose - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./docker-compose.yml - asset_name: docker-compose.yml - asset_content_type: text/plain diff --git a/.github/workflows/Nightly_Publish_Docker.old b/.github/workflows/Nightly_Publish_Docker.old deleted file mode 100644 index 1ba0c41ca..000000000 --- a/.github/workflows/Nightly_Publish_Docker.old +++ /dev/null @@ -1,176 +0,0 @@ -name: Nightly Publish Docker -on: - schedule: - - cron: "0 0 * * *" - -permissions: - contents: read - -env: - REGISTRY_IMAGE: senexcrenshaw/streammaster - -jobs: - build: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - platform: - - linux/amd64 - - linux/arm64 - - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Install GitVersion - uses: gittools/actions/gitversion/setup@v0 - with: - versionSpec: "5.x" - - - name: Determine Version - uses: gittools/actions/gitversion/execute@v0 - with: - useConfigFile: true - updateAssemblyInfo: true - targetPath: StreamMasterAPI - - - name: Docker meta - id: meta - uses: docker/metadata-action@v4 - with: - images: ${{ env.REGISTRY_IMAGE }} - labels: | - org.opencontainers.image.version=${{ env.GitVersion_SemVer }}-${{ env.GitVersion_BuildMetaDataPadded }} - tags: | - nightly - - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Login to Docker Hub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Build and push by digest - id: build - uses: docker/build-push-action@v4 - with: - context: . - platforms: ${{ matrix.platform }} - labels: ${{ steps.meta.outputs.labels }} - outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true - - - name: Export digest - run: | - mkdir -p /tmp/digests - digest="${{ steps.build.outputs.digest }}" - touch "/tmp/digests/${digest#sha256:}" - - - name: Upload digest - uses: actions/upload-artifact@v3 - with: - name: digests - path: /tmp/digests/* - if-no-files-found: error - retention-days: 1 - - merge: - runs-on: ubuntu-latest - needs: - - build - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Install GitVersion - uses: gittools/actions/gitversion/setup@v0 - with: - versionSpec: "5.x" - - - name: Determine Version - uses: gittools/actions/gitversion/execute@v0 - with: - useConfigFile: true - updateAssemblyInfo: true - targetPath: StreamMasterAPI - - - name: Download digests - uses: actions/download-artifact@v3 - with: - name: digests - path: /tmp/digests - - - name: Display GitVersion variables - run: | - echo "Major: ${{ env.GitVersion_Major }}" - echo "Minor: ${{ env.GitVersion_Minor }}" - echo "Patch: ${{ env.GitVersion_Patch }}" - echo "PreReleaseTag: ${{ env.GitVersion_PreReleaseTag }}" - echo "PreReleaseTagWithDash: ${{ env.GitVersion_PreReleaseTagWithDash }}" - echo "PreReleaseLabel: ${{ env.GitVersion_PreReleaseLabel }}" - echo "PreReleaseNumber: ${{ env.GitVersion_PreReleaseNumber }}" - echo "WeightedPreReleaseNumber: ${{ env.GitVersion_WeightedPreReleaseNumber }}" - echo "BuildMetaData: ${{ env.GitVersion_BuildMetaData }}" - echo "BuildMetaDataPadded: ${{ env.GitVersion_BuildMetaDataPadded }}" - echo "FullBuildMetaData: ${{ env.GitVersion_FullBuildMetaData }}" - echo "MajorMinorPatch: ${{ env.GitVersion_MajorMinorPatch }}" - echo "SemVer: ${{ env.GitVersion_SemVer }}" - echo "LegacySemVer: ${{ env.GitVersion_LegacySemVer }}" - echo "LegacySemVerPadded: ${{ env.GitVersion_LegacySemVerPadded }}" - echo "AssemblySemVer: ${{ env.GitVersion_AssemblySemVer }}" - echo "AssemblySemFileVer: ${{ env.GitVersion_AssemblySemFileVer }}" - echo "FullSemVer: ${{ env.GitVersion_SemVer }}" - echo "InformationalVersion: ${{ env.GitVersion_InformationalVersion }}" - echo "BranchName: ${{ env.GitVersion_BranchName }}" - echo "EscapedBranchName: ${{ env.GitVersion_EscapedBranchName }}" - echo "Sha: ${{ env.GitVersion_Sha }}" - echo "ShortSha: ${{ env.GitVersion_ShortSha }}" - echo "NuGetVersionV2: ${{ env.GitVersion_NuGetVersionV2 }}" - echo "NuGetVersion: ${{ env.GitVersion_NuGetVersion }}" - echo "NuGetPreReleaseTagV2: ${{ env.GitVersion_NuGetPreReleaseTagV2 }}" - echo "NuGetPreReleaseTag: ${{ env.GitVersion_NuGetPreReleaseTag }}" - echo "VersionSourceSha: ${{ env.GitVersion_VersionSourceSha }}" - echo "CommitsSinceVersionSource: ${{ env.GitVersion_CommitsSinceVersionSource }}" - echo "CommitsSinceVersionSourcePadded: ${{ env.GitVersion_CommitsSinceVersionSourcePadded }}" - echo "UncommittedChanges: ${{ env.GitVersion_UncommittedChanges }}" - echo "CommitDate: ${{ env.GitVersion_CommitDate }}" - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Docker meta - id: meta - uses: docker/metadata-action@v4 - with: - images: ${{ env.REGISTRY_IMAGE }} - labels: | - org.opencontainers.image.description=Stream Master Docker Image - org.opencontainers.image.version=${{ env.GitVersion_SemVer }}-${{ env.GitVersion_BuildMetaDataPadded }} - tags: | - nightly - - - name: Login to Docker Hub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Build and Push Image - working-directory: /tmp/digests - run: | - docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \ - $(printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *) - - - name: Inspect image - run: | - docker buildx imagetools inspect ${{ env.REGISTRY_IMAGE }}:${{ steps.meta.outputs.version }} diff --git a/.github/workflows/Publish_On_Tags.old b/.github/workflows/Publish_On_Tags.old deleted file mode 100644 index 85cc4d563..000000000 --- a/.github/workflows/Publish_On_Tags.old +++ /dev/null @@ -1,117 +0,0 @@ -name: Publish On Tags -on: - push: - tags: - - "*" - -permissions: - contents: read - -env: - REGISTRY_IMAGE: senexcrenshaw/streammaster - -jobs: - build: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - platform: - - linux/amd64 - - linux/arm64 - - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Docker meta - id: meta - uses: docker/metadata-action@v4 - with: - images: ${{ env.REGISTRY_IMAGE }} - tags: | - latest - type=semver,pattern={{version}} - ${{ env.GitVersion_SemVer }}-${{ env.GitVersion_BuildMetaDataPadded }} - - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Login to Docker Hub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Build and push by digest - id: build - uses: docker/build-push-action@v4 - with: - context: . - platforms: ${{ matrix.platform }} - labels: ${{ steps.meta.outputs.labels }} - outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true - - - name: Export digest - run: | - mkdir -p /tmp/digests - digest="${{ steps.build.outputs.digest }}" - touch "/tmp/digests/${digest#sha256:}" - - - name: Upload digest - uses: actions/upload-artifact@v3 - with: - name: digests - path: /tmp/digests/* - if-no-files-found: error - retention-days: 1 - - merge: - runs-on: ubuntu-latest - needs: - - build - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Download digests - uses: actions/download-artifact@v3 - with: - name: digests - path: /tmp/digests - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Docker meta - id: meta - uses: docker/metadata-action@v4 - with: - images: ${{ env.REGISTRY_IMAGE }} - tags: | - latest - type=semver,pattern={{version}} - ${{ env.GitVersion_SemVer }}-${{ env.GitVersion_BuildMetaDataPadded }} - - - name: Login to Docker Hub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Build and Push Image - working-directory: /tmp/digests - run: | - docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \ - $(printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *) - - - name: Inspect image - run: | - docker buildx imagetools inspect ${{ env.REGISTRY_IMAGE }}:${{ steps.meta.outputs.version }} diff --git a/.github/workflows/Release_Drafter.old b/.github/workflows/Release_Drafter.old deleted file mode 100644 index a59995fb8..000000000 --- a/.github/workflows/Release_Drafter.old +++ /dev/null @@ -1,46 +0,0 @@ -name: Release Drafter - -on: - workflow_dispatch: - - push: - tags: - - "v*" - - # branches to consider in the event; optional, defaults to all - # branches: - # - main - # # pull_request event is required only for autolabeler - # pull_request: - # # Only following types are handled by the action, but one can default to all as well - # types: [opened, reopened, synchronize] - # pull_request_target event is required for autolabeler to support PRs from forks - # pull_request_target: - # types: [opened, reopened, synchronize] - -permissions: - contents: read - -jobs: - update_release_draft: - permissions: - # write permission is required to create a github release - contents: write - # write permission is required for autolabeler - # otherwise, read permission is required at least - pull-requests: write - runs-on: ubuntu-latest - steps: - # (Optional) GitHub Enterprise requires GHE_HOST variable set - #- name: Set GHE_HOST - # run: | - # echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV - - # Drafts your next Release notes as Pull Requests are merged into "main" - - uses: release-drafter/release-drafter@v5 - # (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml - # with: - # config-name: my-config.yml - # disable-autolabeler: true - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/labeler.old b/.github/workflows/labeler.old deleted file mode 100644 index 857cfb4a7..000000000 --- a/.github/workflows/labeler.old +++ /dev/null @@ -1,12 +0,0 @@ -name: "Pull Request Labeler" -on: - - pull_request_target - -jobs: - triage: - permissions: - contents: read - pull-requests: write - runs-on: ubuntu-latest - steps: - - uses: actions/labeler@v4 diff --git a/.github/workflows/lock.old b/.github/workflows/lock.old deleted file mode 100644 index bfec71a05..000000000 --- a/.github/workflows/lock.old +++ /dev/null @@ -1,26 +0,0 @@ -name: "Lock threads" - -on: - workflow_dispatch: - schedule: - - cron: "0 0 * * *" - -permissions: {} -jobs: - lock: - permissions: - issues: write # to lock issues (dessant/lock-threads) - pull-requests: write # to lock PRs (dessant/lock-threads) - - runs-on: ubuntu-latest - steps: - - uses: dessant/lock-threads@v4 - with: - github-token: ${{ github.token }} - issue-inactive-days: "90" - exclude-issue-created-before: "" - exclude-any-issue-labels: "" - add-issue-labels: "" - issue-comment: "" - issue-lock-reason: "resolved" - process-only: ""