mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-11-24 02:41:01 -05:00
29 lines
816 B
Bash
29 lines
816 B
Bash
|
on:
|
||
|
push:
|
||
|
paths:
|
||
|
- forgejo.sh
|
||
|
- .forgejo/workflows/forgejo-sh.yml
|
||
|
pull_request:
|
||
|
paths:
|
||
|
- forgejo.sh
|
||
|
- .forgejo/workflows/forgejo-sh.yml
|
||
|
|
||
|
jobs:
|
||
|
forgejo-sh:
|
||
|
runs-on: self-hosted
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
- run: |
|
||
|
set -x
|
||
|
export PATH=$(pwd):$PATH
|
||
|
forgejo-dependencies.sh install_docker
|
||
|
(
|
||
|
echo codeberg.org/forgejo/forgejo 1.19.4-0
|
||
|
echo codeberg.org/forgejo/forgejo 1.20.4-1
|
||
|
echo codeberg.org/forgejo-experimental/forgejo 1.21.0-2-rc0
|
||
|
) | while read url version ; do
|
||
|
echo "=========================== launching forgejo v$version =========="
|
||
|
forgejo.sh setup root admin1234 $url $version
|
||
|
forgejo.sh teardown
|
||
|
done
|