ci: use `go-version-file`

pull/322/head
Michael Kriese 2024-11-12 11:48:32 +01:00
parent 030b1279ad
commit 4ddd8a4ce8
No known key found for this signature in database
GPG Key ID: F8D7748549A5986A
1 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ env:
FORGEJO_ADMIN_PASSWORD: 'admin1234' FORGEJO_ADMIN_PASSWORD: 'admin1234'
FORGEJO_RUNNER_SECRET: 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' FORGEJO_RUNNER_SECRET: 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
FORGEJO_SCRIPT: | FORGEJO_SCRIPT: |
/bin/s6-svscan /etc/s6 & sleep 10 ; su -c "forgejo admin user create --admin --username $FORGEJO_ADMIN_USER --password $FORGEJO_ADMIN_PASSWORD --email root@example.com" git && su -c "forgejo forgejo-cli actions register --labels docker --name therunner --secret $FORGEJO_RUNNER_SECRET" git && sleep infinity /bin/s6-svscan /etc/s6 & sleep 10 ; su -c "forgejo admin user create --admin --username $FORGEJO_ADMIN_USER --password $FORGEJO_ADMIN_PASSWORD --email root@example.com" git && su -c "forgejo forgejo-cli actions register --labels docker --name therunner --secret $FORGEJO_RUNNER_SECRET" git && sleep infinity
GOPROXY: https://goproxy.io,direct GOPROXY: https://goproxy.io,direct
jobs: jobs:
@ -36,11 +36,11 @@ jobs:
- ${{ env.FORGEJO_SCRIPT }} - ${{ env.FORGEJO_SCRIPT }}
steps: steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5 - uses: actions/setup-go@v5
with: with:
go-version: '1.21' go-version-file: go.mod
- uses: actions/checkout@v4
- run: make vet - run: make vet