-
Notifications
You must be signed in to change notification settings - Fork 2
72 lines (55 loc) · 1.68 KB
/
linux.yml
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
name: linux-builds
on:
push:
env:
OWNER: ${{ github.repository_owner }}
BUILDKIT_PROGRESS: plain
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
packages: write
jobs:
linux:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
file:
- docker-dind
- forgejo
- forgejo-runner
- github-runner
- keydb
- nextcloud
- node
- uptime-kuma
- verdaccio
env:
FILE: ${{ matrix.file }}
IMAGE: ghcr.io/${{ github.repository_owner }}/${{ matrix.file }}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: docker-config
uses: containerbase/internal-tools@c0d2b2e1e047779948a40b486bba79ab12d41297 # v3.4.19
with:
command: docker-config
- name: Build the Docker image
run: docker buildx bake test
- name: Test run
run: docker compose --file docker-compose.test.yml run sut
working-directory: ./linux/${{ env.FILE }}
- name: Log into registry
if: github.ref == 'refs/heads/main'
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin
- name: Publish the Docker image
if: github.ref == 'refs/heads/main'
run: docker buildx bake build
- name: Publish the Docker image tags
if: github.ref == 'refs/heads/main'
run: |
if [ -f push.sh ]; then
./push.sh
fi
working-directory: ./linux/${{ env.FILE }}