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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (hide 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 sysadm 1.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 sysadm 1.3 push:
14 sysadm 1.7 tags:
15 sysadm 1.8 - 'combo-*'
16 sysadm 1.1
17 sysadm 1.6 concurrency:
18     group: ${{ github.workflow }}-${{ github.ref }}
19     cancel-in-progress: true
20    
21 sysadm 1.1 env:
22 sysadm 1.3 DOCKERHUB_PLATFORMS: linux/amd64,linux/arm64
23 sysadm 1.5 SOLR_IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/lbbs-solr
24 sysadm 1.1 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 sysadm 1.3 - 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 sysadm 1.1
56 sysadm 1.6 - name: Extract Docker metadata (solr)
57     id: meta-solr
58     uses: docker/metadata-action@v5
59     with:
60 sysadm 1.7 images: ${{ env.SOLR_IMAGE }}
61 sysadm 1.6
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 sysadm 1.7 images: ${{ env.BBSD_IMAGE }}
79 sysadm 1.6
80 sysadm 1.5 - 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 sysadm 1.7 file: Dockerfile/dockerfile.solr
87 sysadm 1.5 push: true
88 sysadm 1.9 provenance: true
89     sbom: true
90 sysadm 1.5 tags: |
91 sysadm 1.7 ${{ env.SOLR_IMAGE }}:combo
92 sysadm 1.6 ${{ 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 sysadm 1.5
97 sysadm 1.1 - name: Build the Docker image (apache)
98     id: push-apache
99     uses: docker/build-push-action@v5
100     with:
101 sysadm 1.3 platforms: ${{ env.DOCKERHUB_PLATFORMS }}
102 sysadm 1.1 context: .
103 sysadm 1.7 file: Dockerfile/dockerfile.apache
104 sysadm 1.1 push: true
105 sysadm 1.9 provenance: true
106     sbom: true
107 sysadm 1.1 tags: |
108 sysadm 1.7 ${{ env.APACHE_IMAGE }}:combo
109 sysadm 1.6 ${{ 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 sysadm 1.1
114 sysadm 1.3 - name: Build the Docker image (php)
115 sysadm 1.1 id: push-php
116     uses: docker/build-push-action@v5
117     with:
118 sysadm 1.3 platforms: ${{ env.DOCKERHUB_PLATFORMS }}
119 sysadm 1.1 context: .
120 sysadm 1.7 file: Dockerfile/dockerfile.php
121 sysadm 1.1 push: true
122 sysadm 1.9 provenance: true
123     sbom: true
124 sysadm 1.1 tags: |
125 sysadm 1.7 ${{ env.PHP_IMAGE }}:combo
126 sysadm 1.6 ${{ 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 sysadm 1.1
131 sysadm 1.3 - name: Build the Docker image (bbsd)
132 sysadm 1.1 id: push-bbsd
133     uses: docker/build-push-action@v5
134     with:
135 sysadm 1.3 platforms: ${{ env.DOCKERHUB_PLATFORMS }}
136 sysadm 1.1 context: .
137 sysadm 1.7 file: Dockerfile/dockerfile.bbsd
138 sysadm 1.1 push: true
139 sysadm 1.9 provenance: true
140     sbom: true
141 sysadm 1.1 tags: |
142 sysadm 1.7 ${{ env.BBSD_IMAGE }}:combo
143 sysadm 1.6 ${{ 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