mirror of
https://code.forgejo.org/actions/setup-forgejo
synced 2025-03-14 22:27:01 +01:00
chore(renovate): normalize versions as a preliminary step (#317)
Reviewed-on: https://code.forgejo.org/actions/setup-forgejo/pulls/317 Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org> Co-authored-by: limiting-factor <limiting-factor@posteo.com> Co-committed-by: limiting-factor <limiting-factor@posteo.com>
This commit is contained in:
parent
844047d85d
commit
38dde0ea52
9 changed files with 16 additions and 16 deletions
|
@ -17,7 +17,7 @@ jobs:
|
|||
run: |
|
||||
LXC_IP_PREFIX=10.0.9 ./forgejo-dependencies.sh
|
||||
export PATH=$(pwd):$PATH
|
||||
forgejo.sh setup root admin1234 code.forgejo.org/forgejo/forgejo 1.20
|
||||
forgejo.sh setup root admin1234 code.forgejo.org/forgejo/forgejo 7.0
|
||||
forgejo-runner.sh setup
|
||||
echo "============================ upload setup-forgejo ==================="
|
||||
forgejo-test-helper.sh push_self_action $(cat forgejo-auth-url) root setup-forgejo vTest
|
||||
|
|
|
@ -39,10 +39,10 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
binary:
|
||||
- version: 1.21.2-1
|
||||
file: https://code.forgejo.org/forgejo/forgejo/releases/download/v1.21.2-1/forgejo-1.21.2-1-linux-amd64
|
||||
- version: 1.20.6-1
|
||||
file: https://code.forgejo.org/forgejo/forgejo/releases/download/v1.20.6-1/forgejo-1.20.6-1-linux-amd64
|
||||
- version: 10.0.1
|
||||
file: https://code.forgejo.org/forgejo/forgejo/releases/download/v10.0.1/forgejo-10.0.1-linux-amd64
|
||||
- version: 7.0.13
|
||||
file: https://code.forgejo.org/forgejo/forgejo/releases/download/v7.0.13/forgejo-7.0.13-linux-amd64
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- shell: bash
|
||||
|
|
|
@ -48,7 +48,7 @@ that [provides a LXC container](https://forgejo.org/docs/next/user/actions/#jobs
|
|||
| parameter | description | required | default |
|
||||
| --- | --- | --- | --- |
|
||||
| image | Container image | `false` | code.forgejo.org/forgejo/forgejo |
|
||||
| image-version | Container image version | `false` | 1.20 |
|
||||
| image-version | Container image version | `false` | 7.0 |
|
||||
| binary | URL to a Forgejo binary | `false` | |
|
||||
| user | Administrator user name | `false` | root |
|
||||
| password | Administrator password | `false` | admin1234 |
|
||||
|
@ -85,9 +85,9 @@ jobs:
|
|||
- id: forgejo
|
||||
uses: actions/setup-forgejo@v1
|
||||
with:
|
||||
image-version: 1.20
|
||||
image-version: 7.0
|
||||
- run: |
|
||||
curl ${{ steps.forgejo.outputs.url }}/api/forgejo/v1/version | grep 1.20
|
||||
curl ${{ steps.forgejo.outputs.url }}/api/forgejo/v1/version | grep 7.0
|
||||
|
||||
```
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ inputs:
|
|||
default: 'code.forgejo.org/forgejo/forgejo'
|
||||
image-version:
|
||||
description: 'Container image version'
|
||||
default: '1.20'
|
||||
default: '7.0'
|
||||
binary:
|
||||
description: 'URL to a Forgejo binary'
|
||||
user:
|
||||
|
|
|
@ -104,7 +104,7 @@ function teardown() {
|
|||
function setup() {
|
||||
local user="${1:-root}"
|
||||
local password="${2:-admin1234}"
|
||||
local url="${3:-https://code.forgejo.org/forgejo/forgejo/releases/download/v1.21.2-1/forgejo-1.21.2-1-linux-amd64}"
|
||||
local url="${3:-https://code.forgejo.org/forgejo/forgejo/releases/download/v7.0.13/forgejo-7.0.13-linux-amd64}"
|
||||
|
||||
dependencies
|
||||
download "$url"
|
||||
|
|
|
@ -51,7 +51,7 @@ function stop_daemon() {
|
|||
}
|
||||
|
||||
function dependency_go() {
|
||||
go_version="1.21.4.linux-amd64" # Set the desired Go version here
|
||||
go_version="1.24.0.linux-amd64" # Set the desired Go version here
|
||||
|
||||
if ! which wget tar >/dev/null; then
|
||||
apt-get install -y -qq wget tar
|
||||
|
|
|
@ -44,7 +44,7 @@ function setup() {
|
|||
local user="${1:-root}"
|
||||
local password="${2:-admin1234}"
|
||||
local image="${3:-codeberg.org/forgejo/forgejo}"
|
||||
local version="${4:-1.20}"
|
||||
local version="${4:-7.0}"
|
||||
|
||||
run $image $version
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ jobs:
|
|||
- id: forgejo
|
||||
uses: SELF@vTest
|
||||
with:
|
||||
binary: https://code.forgejo.org/forgejo/forgejo/releases/download/v1.20.6-1/forgejo-1.20.6-1-linux-amd64
|
||||
binary: https://code.forgejo.org/forgejo/forgejo/releases/download/v7.0.13/forgejo-7.0.13-linux-amd64
|
||||
- run: |
|
||||
echo +++++++++++++++++++++++++++++++++++++++++++
|
||||
echo sanity checking the reset of setup-forgejo
|
||||
|
@ -19,7 +19,7 @@ jobs:
|
|||
test "${{ steps.forgejo.outputs.token }}"
|
||||
test "FORGEJO_TOKEN" -a "FORGEJO_TOKEN" != F'O'RGEJO_TOKEN
|
||||
curl ${{ steps.forgejo.outputs.url }}/api/forgejo/v1/version >& version.out
|
||||
if ! grep --quiet 1.20 version.out ; then
|
||||
if ! grep --quiet 7.0 version.out ; then
|
||||
cat version.out
|
||||
exit 1
|
||||
fi
|
||||
|
|
|
@ -13,7 +13,7 @@ jobs:
|
|||
- id: forgejo
|
||||
uses: SELF@vTest
|
||||
with:
|
||||
image-version: 1.20
|
||||
image-version: 7.0
|
||||
- run: |
|
||||
echo +++++++++++++++++++++++++++++++++++++++++++
|
||||
echo sanity checking the reset of setup-forgejo
|
||||
|
@ -21,7 +21,7 @@ jobs:
|
|||
test "${{ steps.forgejo.outputs.token }}"
|
||||
test "FORGEJO_TOKEN" -a "FORGEJO_TOKEN" != F'O'RGEJO_TOKEN
|
||||
curl ${{ steps.forgejo.outputs.url }}/api/forgejo/v1/version >& version.out
|
||||
if ! grep --quiet 1.20 version.out ; then
|
||||
if ! grep --quiet 7.0 version.out ; then
|
||||
cat version.out
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue