setup-forgejo/.forgejo/workflows/forgejo.sh

29 lines
816 B
Bash
Raw Normal View History

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-3-rc0
) | while read url version ; do
echo "=========================== launching forgejo v$version =========="
forgejo.sh setup root admin1234 $url $version
forgejo.sh teardown
done