diff --git a/.gitea/workflows/build-edge-node.yml b/.gitea/workflows/build-edge-node.yml index 6f83a12..c59b8da 100644 --- a/.gitea/workflows/build-edge-node.yml +++ b/.gitea/workflows/build-edge-node.yml @@ -16,11 +16,7 @@ jobs: env: CONTAINER_NAME: edge-node steps: - # Full fetch: Gitea fails to pack the default depth=1 shallow clone - # ("bad pack header"). Don't set this back to a shallow fetch. - uses: actions/checkout@v4 - with: - fetch-depth: 0 - uses: docker/setup-qemu-action@v3 diff --git a/.gitea/workflows/build-icecast.yml b/.gitea/workflows/build-icecast.yml index ff6e52f..b68744d 100644 --- a/.gitea/workflows/build-icecast.yml +++ b/.gitea/workflows/build-icecast.yml @@ -16,11 +16,7 @@ jobs: env: CONTAINER_NAME: icecast steps: - # Full fetch: Gitea fails to pack the default depth=1 shallow clone - # ("bad pack header"). Don't set this back to a shallow fetch. - uses: actions/checkout@v4 - with: - fetch-depth: 0 - uses: docker/setup-qemu-action@v3 diff --git a/.gitea/workflows/build-op25.yml b/.gitea/workflows/build-op25.yml index c3957b0..1e8e768 100644 --- a/.gitea/workflows/build-op25.yml +++ b/.gitea/workflows/build-op25.yml @@ -16,11 +16,7 @@ jobs: env: CONTAINER_NAME: op25-client steps: - # Full fetch: Gitea fails to pack the default depth=1 shallow clone - # ("bad pack header"). Don't set this back to a shallow fetch. - uses: actions/checkout@v4 - with: - fetch-depth: 0 - uses: docker/setup-qemu-action@v3 diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 002bdd8..a8fc6fe 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -11,11 +11,7 @@ jobs: run: working-directory: drb-edge-node steps: - # Full fetch: Gitea fails to pack the default depth=1 shallow clone - # ("bad pack header"). Don't set this back to a shallow fetch. - uses: actions/checkout@v4 - with: - fetch-depth: 0 - name: Install dependencies run: python3 -m pip install --break-system-packages -r requirements.txt pytest @@ -26,11 +22,7 @@ jobs: lint: runs-on: ubuntu-latest steps: - # Full fetch: Gitea fails to pack the default depth=1 shallow clone - # ("bad pack header"). Don't set this back to a shallow fetch. - uses: actions/checkout@v4 - with: - fetch-depth: 0 - name: Lint run: | diff --git a/op25-container/.gitea/workflows/build-nightly.yml b/op25-container/.gitea/workflows/build-nightly.yml deleted file mode 100644 index 1c38461..0000000 --- a/op25-container/.gitea/workflows/build-nightly.yml +++ /dev/null @@ -1,57 +0,0 @@ -name: release-tag - -on: - push: - branches: - - dev - -jobs: - release-image: - runs-on: ubuntu-latest - env: - DOCKER_LATEST: stable - CONTAINER_NAME: drb-client-discord-bot - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - - - name: Set up Docker BuildX - uses: docker/setup-buildx-action@v3 - with: # replace it with your local IP - config-inline: | - [registry."git.vpn.cusano.net"] - http = false - insecure = false - - - name: Login to DockerHub - uses: docker/login-action@v3 - with: - registry: git.vpn.cusano.net # replace it with your local IP - username: ${{ secrets.GIT_REPO_USERNAME }} - password: ${{ secrets.GIT_REPO_PASSWORD }} - - - name: Get Meta - id: meta - run: | - echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT - echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT - - - name: Validate build configuration - uses: docker/build-push-action@v6 - with: - call: check - - - name: Build and push - uses: docker/build-push-action@v6 - with: - context: . - file: ./Dockerfile - platforms: | - linux/arm64 - push: true - tags: | # replace it with your local IP and tags - git.vpn.cusano.net/${{ vars.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}/${{ env.CONTAINER_NAME }}:${{ steps.meta.outputs.REPO_VERSION }} - git.vpn.cusano.net/${{ vars.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}/${{ env.CONTAINER_NAME }}:${{ env.DOCKER_LATEST }} \ No newline at end of file diff --git a/op25-container/.gitea/workflows/build-stable.yml b/op25-container/.gitea/workflows/build-stable.yml deleted file mode 100644 index 2190f34..0000000 --- a/op25-container/.gitea/workflows/build-stable.yml +++ /dev/null @@ -1,60 +0,0 @@ -name: release-tag - -on: - push: - branches: - - master - -jobs: - release-image: - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - env: - DOCKER_LATEST: stable - CONTAINER_NAME: op25-client - steps: - - name: Checkout - uses: actions/checkout@v5 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - - - name: Set up Docker BuildX - uses: docker/setup-buildx-action@v3 - with: - config-inline: | - [registry."git.vpn.cusano.net"] - http = false - insecure = false - - - name: Login to Gitea Container Registry - uses: docker/login-action@v3 - with: - registry: git.vpn.cusano.net - username: ${{ gitea.actor }} # Uses the user or bot that triggered the workflow - password: ${{ secrets.GITHUB_COM_TOKEN }} # The built-in, temporary token - - - name: Get Meta - id: meta - run: | - echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT - echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT - - - name: Validate build configuration - uses: docker/build-push-action@v6 - with: - call: check - - - name: Build and push - uses: docker/build-push-action@v6 - with: - context: . - file: ./Dockerfile - platforms: | - linux/arm64 - push: true - tags: | - git.vpn.cusano.net/${{ vars.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}/${{ env.CONTAINER_NAME }}:${{ steps.meta.outputs.REPO_VERSION }} - git.vpn.cusano.net/${{ vars.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}/${{ env.CONTAINER_NAME }}:${{ env.DOCKER_LATEST }} diff --git a/op25-container/.gitea/workflows/lint.yml b/op25-container/.gitea/workflows/lint.yml deleted file mode 100644 index ae283a9..0000000 --- a/op25-container/.gitea/workflows/lint.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Lint - -on: - push: - branches: - - master - pull_request: - branches: - - "*" - -jobs: - lint: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: '3.13' - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install flake8 - - - name: Run Lint - run: | - flake8 --max-line-length=88 --ignore=E203,E302,E501 . \ No newline at end of file