/[LeafOK_CVS]/lbbs-combo/.github/workflows/docker-image.yml
ViewVC logotype

Contents of /lbbs-combo/.github/workflows/docker-image.yml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations)
Mon Feb 9 07:30:05 2026 UTC (5 weeks, 2 days ago) by sysadm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +2 -1 lines
Content type: application/yaml
Error occurred while calculating annotation data.
Update workflow

1 name: Docker Image CI
2
3 on:
4 push:
5 branches:
6 - "main"
7
8 concurrency:
9 group: ${{ github.workflow }}-${{ github.ref }}
10 cancel-in-progress: true
11
12 env:
13 DOCKERHUB_PLATFORMS: linux/amd64,linux/arm64
14 SOLR_IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/lbbs-solr
15 APACHE_IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/lbbs-apache
16 PHP_IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/lbbs-php
17 BBSD_IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/lbbs-bbsd
18
19 jobs:
20
21 build:
22
23 runs-on: ubuntu-latest
24
25 steps:
26 - name: Checkout repository and submodules
27 uses: actions/checkout@v4
28 with:
29 submodules: recursive
30 fetch-depth: 0 # fetch all history if the action needs it
31
32 - name: Log in to Docker Hub
33 uses: docker/login-action@v3
34 with:
35 username: ${{ secrets.DOCKERHUB_USERNAME }}
36 password: ${{ secrets.DOCKERHUB_TOKEN }}
37
38 - name: Set up QEMU
39 uses: docker/setup-qemu-action@v3
40
41 - name: Set up Docker Buildx
42 uses: docker/setup-buildx-action@v3
43
44 - name: Extract Docker metadata (solr)
45 id: meta-solr
46 uses: docker/metadata-action@v5
47 with:
48 images: ${{ env.SOLR_IMAGE }}
49
50 - name: Extract Docker metadata (apache)
51 id: meta-apache
52 uses: docker/metadata-action@v5
53 with:
54 images: ${{ env.APACHE_IMAGE }}
55
56 - name: Extract Docker metadata (php)
57 id: meta-php
58 uses: docker/metadata-action@v5
59 with:
60 images: ${{ env.PHP_IMAGE }}
61
62 - name: Extract Docker metadata (bbsd)
63 id: meta-bbsd
64 uses: docker/metadata-action@v5
65 with:
66 images: ${{ env.BBSD_IMAGE }}
67
68 - name: Build the Docker image (solr)
69 id: build-solr
70 uses: docker/build-push-action@v5
71 with:
72 platforms: ${{ env.DOCKERHUB_PLATFORMS }}
73 context: .
74 file: Dockerfile/dockerfile.solr
75 tags: |
76 ${{ steps.meta-solr.outputs.tags }}
77 labels: ${{ steps.meta-solr.outputs.labels }}
78 cache-from: type=gha # Pull cache from GitHub Actions cache
79 cache-to: type=gha,mode=max # Push cache to GitHub Actions cache
80
81 - name: Build the Docker image (apache)
82 id: build-apache
83 uses: docker/build-push-action@v5
84 with:
85 platforms: ${{ env.DOCKERHUB_PLATFORMS }}
86 context: .
87 file: Dockerfile/dockerfile.apache
88 tags: |
89 ${{ steps.meta-apache.outputs.tags }}
90 labels: ${{ steps.meta-apache.outputs.labels }}
91 cache-from: type=gha # Pull cache from GitHub Actions cache
92 cache-to: type=gha,mode=max # Push cache to GitHub Actions cache
93
94 - name: Build the Docker image (php)
95 id: build-php
96 uses: docker/build-push-action@v5
97 with:
98 platforms: ${{ env.DOCKERHUB_PLATFORMS }}
99 context: .
100 file: Dockerfile/dockerfile.php
101 tags: |
102 ${{ steps.meta-php.outputs.tags }}
103 labels: ${{ steps.meta-php.outputs.labels }}
104 cache-from: type=gha # Pull cache from GitHub Actions cache
105 cache-to: type=gha,mode=max # Push cache to GitHub Actions cache
106
107 - name: Build the Docker image (bbsd)
108 id: build-bbsd
109 uses: docker/build-push-action@v5
110 with:
111 platforms: ${{ env.DOCKERHUB_PLATFORMS }}
112 context: .
113 file: Dockerfile/dockerfile.bbsd
114 tags: |
115 ${{ steps.meta-bbsd.outputs.tags }}
116 labels: ${{ steps.meta-bbsd.outputs.labels }}
117 cache-from: type=gha # Pull cache from GitHub Actions cache
118 cache-to: type=gha,mode=max # Push cache to GitHub Actions cache

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1