forked from go-gitea/gitea
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'giteaofficial/main'
* giteaofficial/main: (22 commits) Only run `docker-dryrun` when necessary (go-gitea#25329) fix a nit error output in Makefile (go-gitea#25360) [skip ci] Updated translations via Crowdin Clean up pyproject.toml and package.json, fix poetry options (go-gitea#25327) Fix label list divider (go-gitea#25312) Avoid polluting the config (go-gitea#25345) Fix incorrect link-action event target (go-gitea#25306) Write absolute AppDataPath to app.ini when installing (go-gitea#25331) Add Exoscale to installation on cloud provider docs (go-gitea#25342) Fix UI on mobile view (go-gitea#25315) When viewing a file, hide the add button (go-gitea#25320) Update JS dependencies, remove space after emoji completion (go-gitea#25266) Refactor web package and context package (go-gitea#25298) build nightly docker images (go-gitea#25317) Add `stylelint-declaration-block-no-ignored-properties` (go-gitea#25284) Remove EasyMDE focus outline on text (go-gitea#25328) use Actions environment variables in Makefile (go-gitea#25319) add `stylelint-stylistic` (go-gitea#25285) Remove more unused Fomantic variants (go-gitea#25292) Build nightly binaries with Actions (go-gitea#25308) ...
- Loading branch information
Showing
118 changed files
with
1,451 additions
and
3,295 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
name: release-nightly-assets | ||
|
||
on: | ||
push: | ||
branches: [ main, release/v* ] | ||
|
||
jobs: | ||
nightly-binary: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
# 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@v4 | ||
with: | ||
go-version: ">=1.20" | ||
check-latest: true | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
- run: make deps-frontend deps-backend | ||
# xgo build | ||
- run: make release | ||
env: | ||
TAGS: bindata sqlite sqlite_unlock_notify | ||
- name: import gpg key | ||
id: import_gpg | ||
uses: crazy-max/ghaction-import-gpg@v5 | ||
with: | ||
gpg_private_key: ${{ secrets.GPGSIGN_KEY }} | ||
passphrase: ${{ secrets.GPGSIGN_PASSPHRASE }} | ||
- name: sign binaries | ||
run: | | ||
for f in dist/release/*; do | ||
echo '${{ secrets.GPGSIGN_PASSPHRASE }}' | gpg --pinentry-mode loopback --passphrase-fd 0 --batch --yes --detach-sign -u ${{ steps.import_gpg.outputs.fingerprint }} --output "$f.asc" "$f" | ||
done | ||
# clean branch name to get the folder name in S3 | ||
- name: Get cleaned branch name | ||
id: clean_name | ||
run: | | ||
REF_NAME=$(echo "${{ github.ref }}" | sed -e 's/refs\/heads\///' -e 's/refs\/tags\///' -e 's/release\/v//') | ||
echo "Cleaned name is ${REF_NAME}" | ||
echo "branch=${REF_NAME}" >> "$GITHUB_OUTPUT" | ||
- name: upload binaries to s3 | ||
uses: jakejarvis/s3-sync-action@master | ||
env: | ||
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
AWS_REGION: ${{ secrets.AWS_REGION }} | ||
SOURCE_DIR: dist/release | ||
DEST_DIR: gitea/${{ steps.clean_name.outputs.branch }} | ||
nightly-docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: docker/setup-qemu-action@v2 | ||
- uses: docker/setup-buildx-action@v2 | ||
- name: Get cleaned branch name | ||
id: clean_name | ||
run: | | ||
# if main then say nightly otherwise cleanup name | ||
if [ "${{ github.ref }}" = "refs/heads/main" ]; then | ||
echo "branch=nightly" >> "$GITHUB_OUTPUT" | ||
exit 0 | ||
fi | ||
REF_NAME=$(echo "${{ github.ref }}" | sed -e 's/refs\/heads\///' -e 's/refs\/tags\///' -e 's/release\/v//') | ||
echo "branch=${REF_NAME}-nightly" >> "$GITHUB_OUTPUT" | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: build rootful docker image | ||
uses: docker/build-push-action@v4 | ||
with: | ||
platforms: linux/amd64,linux/arm64 | ||
push: true | ||
tags: gitea/gitea:${{ steps.clean_name.outputs.branch }} | ||
- name: build rootless docker image | ||
uses: docker/build-push-action@v4 | ||
with: | ||
platforms: linux/amd64,linux/arm64 | ||
push: true | ||
file: Dockerfile.rootless | ||
tags: gitea/gitea:${{ steps.clean_name.outputs.branch }}-rootless |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.