fix: add missing query parameters on runner list page (#39163) #7454
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: release-nightly | |
| on: | |
| push: | |
| branches: [main, release/v*] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| nightly-binary: | |
| runs-on: namespace-profile-gitea-release-binary | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 | |
| # fetch all commits instead of only the last as some branches are long lived and could have many between versions | |
| # fetch all tags to ensure that "git describe" reports expected Gitea version, eg. v1.21.0-dev-1-g1234567 | |
| - run: git fetch --unshallow --quiet --tags --force | |
| - uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0 | |
| with: | |
| go-version-file: go.mod | |
| check-latest: true | |
| - uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9 | |
| - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version: 24 | |
| cache: pnpm | |
| cache-dependency-path: pnpm-lock.yaml | |
| - run: make deps-frontend deps-backend | |
| # xgo build | |
| - run: make release | |
| env: | |
| TAGS: bindata | |
| - name: Install Cosign | |
| uses: sigstore/cosign-installer@6f9f17788090df1f26f669e9d70d6ae9567deba6 # v4.1.2 | |
| - name: import gpg key | |
| id: import_gpg | |
| uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0 | |
| with: | |
| gpg_private_key: ${{ secrets.GPGSIGN_KEY }} | |
| passphrase: ${{ secrets.GPGSIGN_PASSPHRASE }} | |
| - name: sign binaries | |
| env: | |
| GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} | |
| GPG_PASSPHRASE: ${{ secrets.GPGSIGN_PASSPHRASE }} | |
| run: | | |
| for f in dist/release/*; do | |
| cosign sign-blob "$f" --bundle "$f.sigstore.json" --yes | |
| echo "$GPG_PASSPHRASE" | gpg --pinentry-mode loopback --passphrase-fd 0 --batch --yes --detach-sign -u "$GPG_FINGERPRINT" --output "$f.asc" "$f" | |
| done | |
| # clean branch name to get the folder name in the object storage | |
| - name: Get cleaned branch name | |
| id: clean_name | |
| env: | |
| REF: ${{ github.ref }} | |
| run: | | |
| REF_NAME=$(echo "$REF" | sed -e 's/refs\/heads\///' -e 's/refs\/tags\///' -e 's/release\/v//') | |
| echo "Cleaned name is ${REF_NAME}" | |
| echo "branch=${REF_NAME}-nightly" >> "$GITHUB_OUTPUT" | |
| - name: upload binaries to cloudflare r2 | |
| env: | |
| AWS_ACCESS_KEY_ID: ${{ secrets.CLOUDFLARE_R2_ACCESS_KEY_ID }} | |
| AWS_SECRET_ACCESS_KEY: ${{ secrets.CLOUDFLARE_R2_SECRET_ACCESS_KEY }} | |
| AWS_DEFAULT_REGION: auto | |
| CLOUDFLARE_R2_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_R2_ACCOUNT_ID }} | |
| CLOUDFLARE_R2_BUCKET: ${{ secrets.CLOUDFLARE_R2_BUCKET }} | |
| BRANCH: ${{ steps.clean_name.outputs.branch }} | |
| run: | | |
| aws s3 sync dist/release "s3://$CLOUDFLARE_R2_BUCKET/gitea/$BRANCH" --endpoint-url "https://$CLOUDFLARE_R2_ACCOUNT_ID.r2.cloudflarestorage.com" --no-progress | |
| nightly-container: | |
| runs-on: namespace-profile-gitea-release-docker | |
| permissions: | |
| contents: read | |
| packages: write # to publish to ghcr.io | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 | |
| # fetch all commits instead of only the last as some branches are long lived and could have many between versions | |
| # fetch all tags to ensure that "git describe" reports expected Gitea version, eg. v1.21.0-dev-1-g1234567 | |
| - run: git fetch --unshallow --quiet --tags --force | |
| - uses: docker/setup-qemu-action@06116385d9baf250c9f4dcb4858b16962ea869c3 # v4.1.0 | |
| - uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4.1.0 | |
| - name: Get cleaned branch name | |
| id: clean_name | |
| env: | |
| REF: ${{ github.ref }} | |
| run: | | |
| REF_NAME=$(echo "$REF" | sed -e 's/refs\/heads\///' -e 's/refs\/tags\///' -e 's/release\/v//') | |
| echo "branch=${REF_NAME}-nightly" >> "$GITHUB_OUTPUT" | |
| - uses: docker/metadata-action@80c7e94dd9b9319bd5eb7a0e0fe9291e23a2a2e9 # v6.1.0 | |
| id: meta | |
| with: | |
| images: |- | |
| gitea/gitea | |
| ghcr.io/go-gitea/gitea | |
| tags: | | |
| type=raw,value=${{ steps.clean_name.outputs.branch }} | |
| annotations: | | |
| org.opencontainers.image.authors="maintainers@gitea.io" | |
| - uses: docker/metadata-action@80c7e94dd9b9319bd5eb7a0e0fe9291e23a2a2e9 # v6.1.0 | |
| id: meta_rootless | |
| with: | |
| images: |- | |
| gitea/gitea | |
| ghcr.io/go-gitea/gitea | |
| # each tag below will have the suffix of -rootless | |
| flavor: | | |
| suffix=-rootless | |
| tags: | | |
| type=raw,value=${{ steps.clean_name.outputs.branch }} | |
| annotations: | | |
| org.opencontainers.image.authors="maintainers@gitea.io" | |
| - name: Login to Docker Hub | |
| uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Login to GHCR using PAT | |
| uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.repository_owner }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: build regular docker image | |
| uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7.2.0 | |
| with: | |
| context: . | |
| platforms: linux/amd64,linux/arm64,linux/riscv64 | |
| push: true | |
| tags: ${{ steps.meta.outputs.tags }} | |
| annotations: ${{ steps.meta.outputs.annotations }} | |
| cache-from: type=registry,ref=ghcr.io/go-gitea/gitea:buildcache-rootful | |
| cache-to: type=registry,ref=ghcr.io/go-gitea/gitea:buildcache-rootful,mode=max | |
| - name: build rootless docker image | |
| uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7.2.0 | |
| with: | |
| context: . | |
| platforms: linux/amd64,linux/arm64,linux/riscv64 | |
| push: true | |
| file: Dockerfile.rootless | |
| tags: ${{ steps.meta_rootless.outputs.tags }} | |
| annotations: ${{ steps.meta_rootless.outputs.annotations }} | |
| cache-from: type=registry,ref=ghcr.io/go-gitea/gitea:buildcache-rootless | |
| cache-to: type=registry,ref=ghcr.io/go-gitea/gitea:buildcache-rootless,mode=max |