name: Integration tests for the release process on: push: paths: - go.mod - Dockerfile - .forgejo/workflows/build-release.yml - .forgejo/workflows/build-release-integration.yml branches-ignore: - renovate/** # they are build via PR pull_request: paths: - go.mod - Dockerfile - .forgejo/workflows/build-release.yml - .forgejo/workflows/build-release-integration.yml jobs: release-simulation: runs-on: self-hosted if: github.repository_owner != 'forgejo-integration' && github.repository_owner != 'forgejo-release' steps: - uses: actions/checkout@v4 - id: forgejo uses: https://code.forgejo.org/actions/setup-forgejo@v1.0.0 with: user: root password: admin1234 image-version: 1.20 lxc-ip-prefix: 10.0.9 - name: publish run: | set -x version=1.2.3 cat > /etc/docker/daemon.json < $binary$suffix if test "$suffix" = .xz ; then unxz --keep $binary$suffix fi chmod +x $binary ./$binary --version | grep $version curl --fail -L -sS $url/root/runner/releases/download/v$version/$binary$suffix.sha256 > $binary$suffix.sha256 shasum -a 256 --check $binary$suffix.sha256 rm $binary$suffix done done docker pull ${{ steps.forgejo.outputs.host-port }}/root/runner:$version docker inspect ${{ steps.forgejo.outputs.host-port}}/root/runner:$version > labels.json python3 .forgejo/labelscompare.py