blob: 25f2393da545695ccb388da10c321148f89f98d5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
name: Build and Push Docker Image
on:
push: {}
pull_request: {}
schedule:
- cron: '0 */6 * * *'
workflow_dispatch: {}
jobs:
find-latest-version:
runs-on: ubuntu-latest
container:
image: gitea.segundo.io/docker/ci-base:latest
credentials:
username: "${GITEA_REGISTRY_TOKEN}"
password: "${GITEA_REGISTRY_USER}"
outputs:
lt-version: ${{ steps.find-lt-version.outputs.lt-version }}
steps:
- uses: actions/checkout@v5
- id: find-lt-version
run: |
curl --silent --fail https://languagetool.org/download/ |
grep -o 'href=".*">' |
grep -Po '="\K[^"]+' |
grep -Po 'LanguageTool-\K\d\.\d+' |
sort -V |
tail -n 1 |
xargs -I {} echo "lt-version={}" >> $GITHUB_OUTPUT
check:
runs-on: ubuntu-latest
container: ghcr.io/super-linter/super-linter:latest
steps:
- uses: actions/checkout@v5
- run: |
bash .scripts.d/10-check.sh
build:
runs-on: ubuntu-latest
needs: [find-latest-version, check]
env:
LT_VERSION: ${{ needs.find-latest-version.outputs.lt-version }}
container:
image: gitea.segundo.io/docker/ci-base:latest
credentials:
username: "${GITEA_REGISTRY_TOKEN}"
password: "${GITEA_REGISTRY_USER}"
steps:
- uses: actions/checkout@v5
- run: |
bash .scripts.d/20-build.sh
test:
runs-on: ubuntu-latest
needs: build
container:
image: gitea.segundo.io/docker/ci-base:latest
credentials:
username: "${GITEA_REGISTRY_TOKEN}"
password: "${GITEA_REGISTRY_USER}"
steps:
- uses: actions/checkout@v5
- run: |
bash .scripts.d/30-test.sh
publish:
runs-on: ubuntu-latest
needs: [find-latest-version, test]
env:
LT_VERSION: ${{ needs.find-latest-version.outputs.lt-version }}
container:
image: gitea.segundo.io/docker/ci-base:latest
credentials:
username: "${GITEA_REGISTRY_TOKEN}"
password: "${GITEA_REGISTRY_USER}"
steps:
- uses: actions/checkout@v5
- run: |
bash .scripts.d/40-publish.sh
|