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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations)
Mon Feb 9 07:30:05 2026 UTC (5 weeks, 1 day ago) by sysadm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +8 -0 lines
Content type: application/yaml
Update workflow

1 # This workflow uses actions that are not certified by GitHub.
2 # They are provided by a third-party and are governed by
3 # separate terms of service, privacy policy, and support
4 # documentation.
5
6 # GitHub recommends pinning actions to a commit SHA.
7 # To get a newer version, you will need to update the SHA.
8 # You can also reference a tag or branch, but the action may change without warning.
9
10 name: Publish Docker image
11
12 on:
13 push:
14 tags:
15 - 'combo-*'
16
17 concurrency:
18 group: ${{ github.workflow }}-${{ github.ref }}
19 cancel-in-progress: true
20
21 env:
22 DOCKERHUB_PLATFORMS: linux/amd64,linux/arm64
23 SOLR_IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/lbbs-solr
24 APACHE_IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/lbbs-apache
25 PHP_IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/lbbs-php
26 BBSD_IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/lbbs-bbsd
27
28 jobs:
29 push_to_registry:
30 name: Push Docker image to Docker Hub
31 runs-on: ubuntu-latest
32 permissions:
33 packages: write
34 contents: read
35 attestations: write
36 id-token: write
37 steps:
38 - name: Checkout repository and submodules
39 uses: actions/checkout@v4
40 with:
41 submodules: recursive
42 fetch-depth: 0 # fetch all history if the action needs it
43
44 - name: Log in to Docker Hub
45 uses: docker/login-action@v3
46 with:
47 username: ${{ secrets.DOCKERHUB_USERNAME }}
48 password: ${{ secrets.DOCKERHUB_TOKEN }}
49
50 - name: Set up QEMU
51 uses: docker/setup-qemu-action@v3
52
53 - name: Set up Docker Buildx
54 uses: docker/setup-buildx-action@v3
55
56 - name: Extract Docker metadata (solr)
57 id: meta-solr
58 uses: docker/metadata-action@v5
59 with:
60 images: ${{ env.SOLR_IMAGE }}
61
62 - name: Extract Docker metadata (apache)
63 id: meta-apache
64 uses: docker/metadata-action@v5
65 with:
66 images: ${{ env.APACHE_IMAGE }}
67
68 - name: Extract Docker metadata (php)
69 id: meta-php
70 uses: docker/metadata-action@v5
71 with:
72 images: ${{ env.PHP_IMAGE }}
73
74 - name: Extract Docker metadata (bbsd)
75 id: meta-bbsd
76 uses: docker/metadata-action@v5
77 with:
78 images: ${{ env.BBSD_IMAGE }}
79
80 - name: Build the Docker image (solr)
81 id: push-solr
82 uses: docker/build-push-action@v5
83 with:
84 platforms: ${{ env.DOCKERHUB_PLATFORMS }}
85 context: .
86 file: Dockerfile/dockerfile.solr
87 push: true
88 provenance: true
89 sbom: true
90 tags: |
91 ${{ env.SOLR_IMAGE }}:combo
92 ${{ steps.meta-solr.outputs.tags }}
93 labels: ${{ steps.meta-solr.outputs.labels }}
94 cache-from: type=gha # Pull cache from GitHub Actions cache
95 cache-to: type=gha,mode=max # Push cache to GitHub Actions cache
96
97 - name: Build the Docker image (apache)
98 id: push-apache
99 uses: docker/build-push-action@v5
100 with:
101 platforms: ${{ env.DOCKERHUB_PLATFORMS }}
102 context: .
103 file: Dockerfile/dockerfile.apache
104 push: true
105 provenance: true
106 sbom: true
107 tags: |
108 ${{ env.APACHE_IMAGE }}:combo
109 ${{ steps.meta-apache.outputs.tags }}
110 labels: ${{ steps.meta-apache.outputs.labels }}
111 cache-from: type=gha # Pull cache from GitHub Actions cache
112 cache-to: type=gha,mode=max # Push cache to GitHub Actions cache
113
114 - name: Build the Docker image (php)
115 id: push-php
116 uses: docker/build-push-action@v5
117 with:
118 platforms: ${{ env.DOCKERHUB_PLATFORMS }}
119 context: .
120 file: Dockerfile/dockerfile.php
121 push: true
122 provenance: true
123 sbom: true
124 tags: |
125 ${{ env.PHP_IMAGE }}:combo
126 ${{ steps.meta-php.outputs.tags }}
127 labels: ${{ steps.meta-php.outputs.labels }}
128 cache-from: type=gha # Pull cache from GitHub Actions cache
129 cache-to: type=gha,mode=max # Push cache to GitHub Actions cache
130
131 - name: Build the Docker image (bbsd)
132 id: push-bbsd
133 uses: docker/build-push-action@v5
134 with:
135 platforms: ${{ env.DOCKERHUB_PLATFORMS }}
136 context: .
137 file: Dockerfile/dockerfile.bbsd
138 push: true
139 provenance: true
140 sbom: true
141 tags: |
142 ${{ env.BBSD_IMAGE }}:combo
143 ${{ steps.meta-bbsd.outputs.tags }}
144 labels: ${{ steps.meta-bbsd.outputs.labels }}
145 cache-from: type=gha # Pull cache from GitHub Actions cache
146 cache-to: type=gha,mode=max # Push cache to GitHub Actions cache

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