|
|
|
@ -3,9 +3,9 @@ name: release-tag-version
|
|
|
|
|
on:
|
|
|
|
|
push:
|
|
|
|
|
tags:
|
|
|
|
|
- 'v1.*'
|
|
|
|
|
- '!v1*-rc*'
|
|
|
|
|
- '!v1*-dev'
|
|
|
|
|
- "v1.*"
|
|
|
|
|
- "!v1*-rc*"
|
|
|
|
|
- "!v1*-dev"
|
|
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
@ -23,7 +23,7 @@ jobs:
|
|
|
|
|
with:
|
|
|
|
|
go-version-file: go.mod
|
|
|
|
|
check-latest: true
|
|
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
|
- uses: actions/setup-node@v4
|
|
|
|
|
with:
|
|
|
|
|
node-version: 20
|
|
|
|
|
- run: make deps-frontend deps-backend
|
|
|
|
@ -33,7 +33,7 @@ jobs:
|
|
|
|
|
TAGS: bindata sqlite sqlite_unlock_notify
|
|
|
|
|
- name: import gpg key
|
|
|
|
|
id: import_gpg
|
|
|
|
|
uses: crazy-max/ghaction-import-gpg@v5
|
|
|
|
|
uses: crazy-max/ghaction-import-gpg@v6
|
|
|
|
|
with:
|
|
|
|
|
gpg_private_key: ${{ secrets.GPGSIGN_KEY }}
|
|
|
|
|
passphrase: ${{ secrets.GPGSIGN_PASSPHRASE }}
|
|
|
|
@ -70,8 +70,8 @@ jobs:
|
|
|
|
|
# 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@v2
|
|
|
|
|
- uses: docker/setup-buildx-action@v2
|
|
|
|
|
- uses: docker/setup-qemu-action@v3
|
|
|
|
|
- uses: docker/setup-buildx-action@v3
|
|
|
|
|
- uses: docker/metadata-action@v5
|
|
|
|
|
id: meta
|
|
|
|
|
with:
|
|
|
|
@ -87,12 +87,12 @@ jobs:
|
|
|
|
|
type=semver,pattern={{major}}.{{minor}}
|
|
|
|
|
type=semver,pattern={{version}}
|
|
|
|
|
- name: Login to Docker Hub
|
|
|
|
|
uses: docker/login-action@v2
|
|
|
|
|
uses: docker/login-action@v3
|
|
|
|
|
with:
|
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
|
- name: build rootful docker image
|
|
|
|
|
uses: docker/build-push-action@v4
|
|
|
|
|
uses: docker/build-push-action@v5
|
|
|
|
|
with:
|
|
|
|
|
context: .
|
|
|
|
|
platforms: linux/amd64,linux/arm64
|
|
|
|
@ -106,8 +106,8 @@ jobs:
|
|
|
|
|
# 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@v2
|
|
|
|
|
- uses: docker/setup-buildx-action@v2
|
|
|
|
|
- uses: docker/setup-qemu-action@v3
|
|
|
|
|
- uses: docker/setup-buildx-action@v3
|
|
|
|
|
- uses: docker/metadata-action@v5
|
|
|
|
|
id: meta
|
|
|
|
|
with:
|
|
|
|
@ -126,12 +126,12 @@ jobs:
|
|
|
|
|
type=semver,pattern={{major}}.{{minor}}
|
|
|
|
|
type=semver,pattern={{version}}
|
|
|
|
|
- name: Login to Docker Hub
|
|
|
|
|
uses: docker/login-action@v2
|
|
|
|
|
uses: docker/login-action@v3
|
|
|
|
|
with:
|
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
|
- name: build rootless docker image
|
|
|
|
|
uses: docker/build-push-action@v4
|
|
|
|
|
uses: docker/build-push-action@v5
|
|
|
|
|
with:
|
|
|
|
|
context: .
|
|
|
|
|
platforms: linux/amd64,linux/arm64
|
|
|
|
|