mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-11-24 00:21:00 -05:00
28 lines
816 B
Bash
28 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.5-0
|
|
echo codeberg.org/forgejo-experimental/forgejo 1.21.0-7-rc2
|
|
) | while read url version ; do
|
|
echo "=========================== launching forgejo v$version =========="
|
|
forgejo.sh setup root admin1234 $url $version
|
|
forgejo.sh teardown
|
|
done
|