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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.2 by sysadm, Thu Jan 8 15:13:46 2026 UTC Revision 1.4 by sysadm, Thu Jan 22 10:00:46 2026 UTC
# Line 10  Line 10 
10  name: Publish Docker image  name: Publish Docker image
11    
12  on:  on:
13    schedule:    push:
14      # Run every day 05:10 UTC+8      branches: [ "milestone" ]
     - cron: '10 21 * * *'  
15    
16  env:  env:
17      DOCKERHUB_PLATFORMS: linux/amd64,linux/arm64
18    APACHE_IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/lbbs-apache    APACHE_IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/lbbs-apache
19    PHP_IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/lbbs-php    PHP_IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/lbbs-php
20    BBSD_IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/lbbs-bbsd    BBSD_IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/lbbs-bbsd
# Line 44  jobs: Line 44  jobs:
44            username: ${{ secrets.DOCKERHUB_USERNAME }}            username: ${{ secrets.DOCKERHUB_USERNAME }}
45            password: ${{ secrets.DOCKERHUB_TOKEN }}            password: ${{ secrets.DOCKERHUB_TOKEN }}
46    
47        - name: Extract metadata (tags, labels) for Docker        - name: Set up QEMU
48          id: meta          uses: docker/setup-qemu-action@v3
         uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7  
         with:  
           images: leafok/lbbs  
49    
50        - name: Build the Docker image (apache)        - name: Set up Docker Buildx
51          uses: docker/build-push-action@v5          uses: docker/setup-buildx-action@v3
         with:  
           context: ./leafok_bbs  
           file: ./leafok_bbs/Dockerfile/dockerfile.apache  
           tags: |  
             ${{ env.APACHE_IMAGE }}:latest  
52    
53        - name: Build the Docker image (php)        - name: Build the Docker image (apache)
         uses: docker/build-push-action@v5  
         with:  
           context: ./leafok_bbs  
           file: ./leafok_bbs/Dockerfile/dockerfile.php  
           tags: |  
             ${{ env.PHP_IMAGE }}:latest  
   
       - name: Build the Docker image (bbsd)  
         uses: docker/build-push-action@v5  
         with:  
           context: ./lbbs  
           file: ./lbbs/Dockerfile/dockerfile.bbsd  
           tags: |  
             ${{ env.BBSD_IMAGE }}:latest  
                           
       - name: Build the Docker image (apache:testing)  
54          id: push-apache          id: push-apache
55          uses: docker/build-push-action@v5          uses: docker/build-push-action@v5
56          with:          with:
57              platforms: ${{ env.DOCKERHUB_PLATFORMS }}
58            context: .            context: .
59            file: Dockerfile/dockerfile.apache.testing            file: Dockerfile/dockerfile.apache.testing
60            push: true            push: true
# Line 86  jobs: Line 63  jobs:
63              ${{ env.APACHE_IMAGE }}:testing              ${{ env.APACHE_IMAGE }}:testing
64            labels: ${{ steps.meta.outputs.labels }}            labels: ${{ steps.meta.outputs.labels }}
65    
66        - name: Build the Docker image (php:testing)        - name: Build the Docker image (php)
67          id: push-php          id: push-php
68          uses: docker/build-push-action@v5          uses: docker/build-push-action@v5
69          with:          with:
70              platforms: ${{ env.DOCKERHUB_PLATFORMS }}
71            context: .            context: .
72            file: Dockerfile/dockerfile.php.testing            file: Dockerfile/dockerfile.php.testing
73            push: true            push: true
# Line 98  jobs: Line 76  jobs:
76              ${{ env.PHP_IMAGE }}:testing              ${{ env.PHP_IMAGE }}:testing
77            labels: ${{ steps.meta.outputs.labels }}            labels: ${{ steps.meta.outputs.labels }}
78    
79        - name: Build the Docker image (bbsd:testing)        - name: Build the Docker image (bbsd)
80          id: push-bbsd          id: push-bbsd
81          uses: docker/build-push-action@v5          uses: docker/build-push-action@v5
82          with:          with:
83              platforms: ${{ env.DOCKERHUB_PLATFORMS }}
84            context: .            context: .
85            file: Dockerfile/dockerfile.bbsd.testing            file: Dockerfile/dockerfile.bbsd.testing
86            push: true            push: true


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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