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