/[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.5 - (hide annotations)
Thu Jan 22 14:58:59 2026 UTC (7 weeks, 5 days ago) by sysadm
Branch: MAIN
Changes since 1.4: +14 -0 lines
Content type: application/yaml
Add build and publish for lbbs-solr:testing

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     branches: [ "milestone" ]
15 sysadm 1.1
16     env:
17 sysadm 1.3 DOCKERHUB_PLATFORMS: linux/amd64,linux/arm64
18 sysadm 1.5 SOLR_IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/lbbs-solr
19 sysadm 1.1 APACHE_IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/lbbs-apache
20     PHP_IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/lbbs-php
21     BBSD_IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/lbbs-bbsd
22    
23     jobs:
24     push_to_registry:
25     name: Push Docker image to Docker Hub
26     runs-on: ubuntu-latest
27     permissions:
28     packages: write
29     contents: read
30     attestations: write
31     id-token: write
32     steps:
33 sysadm 1.2 - name: Set current date as env variable
34     run: echo "BUILD_DATE=$(date +%Y%m%d)" >> $GITHUB_ENV
35    
36 sysadm 1.1 - name: Checkout repository and submodules
37     uses: actions/checkout@v4
38     with:
39     submodules: recursive
40     fetch-depth: 0 # fetch all history if the action needs it
41    
42     - name: Log in to Docker Hub
43     uses: docker/login-action@v3
44     with:
45     username: ${{ secrets.DOCKERHUB_USERNAME }}
46     password: ${{ secrets.DOCKERHUB_TOKEN }}
47    
48 sysadm 1.3 - name: Set up QEMU
49     uses: docker/setup-qemu-action@v3
50    
51     - name: Set up Docker Buildx
52     uses: docker/setup-buildx-action@v3
53 sysadm 1.1
54 sysadm 1.5 - name: Build the Docker image (solr)
55     id: push-solr
56     uses: docker/build-push-action@v5
57     with:
58     platforms: ${{ env.DOCKERHUB_PLATFORMS }}
59     context: .
60     file: Dockerfile/dockerfile.solr.testing
61     push: true
62     tags: |
63     ${{ env.SOLR_IMAGE }}:testing-${{ env.BUILD_DATE }}
64     ${{ env.SOLR_IMAGE }}:testing
65     labels: ${{ steps.meta.outputs.labels }}
66    
67 sysadm 1.1 - name: Build the Docker image (apache)
68     id: push-apache
69     uses: docker/build-push-action@v5
70     with:
71 sysadm 1.3 platforms: ${{ env.DOCKERHUB_PLATFORMS }}
72 sysadm 1.1 context: .
73     file: Dockerfile/dockerfile.apache.testing
74     push: true
75     tags: |
76 sysadm 1.2 ${{ env.APACHE_IMAGE }}:testing-${{ env.BUILD_DATE }}
77 sysadm 1.1 ${{ env.APACHE_IMAGE }}:testing
78     labels: ${{ steps.meta.outputs.labels }}
79    
80 sysadm 1.3 - name: Build the Docker image (php)
81 sysadm 1.1 id: push-php
82     uses: docker/build-push-action@v5
83     with:
84 sysadm 1.3 platforms: ${{ env.DOCKERHUB_PLATFORMS }}
85 sysadm 1.1 context: .
86     file: Dockerfile/dockerfile.php.testing
87     push: true
88     tags: |
89 sysadm 1.2 ${{ env.PHP_IMAGE }}:testing-${{ env.BUILD_DATE }}
90 sysadm 1.1 ${{ env.PHP_IMAGE }}:testing
91     labels: ${{ steps.meta.outputs.labels }}
92    
93 sysadm 1.3 - name: Build the Docker image (bbsd)
94 sysadm 1.1 id: push-bbsd
95     uses: docker/build-push-action@v5
96     with:
97 sysadm 1.3 platforms: ${{ env.DOCKERHUB_PLATFORMS }}
98 sysadm 1.1 context: .
99     file: Dockerfile/dockerfile.bbsd.testing
100     push: true
101     tags: |
102 sysadm 1.2 ${{ env.BBSD_IMAGE }}:testing-${{ env.BUILD_DATE }}
103 sysadm 1.1 ${{ env.BBSD_IMAGE }}:testing
104     labels: ${{ steps.meta.outputs.labels }}

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