chore(deps): Update dependency ruff to ^0.14.0 #110
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "build" | |
| on: | |
| push: | |
| branches: "**" | |
| tags-ignore: ["**"] | |
| pull_request: | |
| permissions: | |
| contents: "read" | |
| packages: "write" | |
| env: | |
| IMAGE_NAMESPACE: "ghcr.io/kyoripowered" | |
| IMAGE_NAME: "pydisgit" | |
| jobs: | |
| build: | |
| # Only run on PRs if the source branch is on someone else's repo | |
| if: "${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: "setup" | |
| id: "setup" | |
| uses: "KyoriPowered/.github/.github/actions/setup-python-env@trunk" | |
| - name: "install deps / poetry" | |
| run: "poetry install" | |
| - name: "install deps / qemu" | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y qemu-user-static | |
| - name: "container / build" | |
| uses: "redhat-actions/[email protected]" | |
| id: "build-image" | |
| with: | |
| image: "${{ env.IMAGE_NAME }}" | |
| tags: latest | |
| platforms: linux/amd64, linux/arm64 | |
| containerfiles: ./Dockerfile | |
| - name: "container / push" | |
| if: "${{ github.event_name == 'push' && steps.setup.outputs.publishing_branch != ''}}" | |
| uses: "redhat-actions/[email protected]" | |
| with: | |
| image: "${{ steps.build-image.outputs.image}}" | |
| tags: "${{ steps.build-image.outputs.tags }}" | |
| registry: "${{ env.IMAGE_NAMESPACE }}" | |
| username: "${{ github.actor }}" | |
| password: "${{ secrets.GITHUB_TOKEN }}" |