-
Notifications
You must be signed in to change notification settings - Fork 2
71 lines (54 loc) · 1.65 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
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
- 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@85061d6ea57790418fdf4e2672560b82654478de # v3.4.12
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 }}