/[LeafOK_CVS]/fenglin/.github/workflows/docker-image.yml
ViewVC logotype

Annotation of /fenglin/.github/workflows/docker-image.yml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Sat Jan 10 06:52:12 2026 UTC (2 months ago) by sysadm
Branch: MAIN
Content type: application/yaml
Add config for Docker

1 sysadm 1.1 name: Docker Image CI
2    
3     on:
4     push:
5     branches: [ "main" ]
6     pull_request:
7     branches: [ "main" ]
8    
9     env:
10     DOCKERHUB_PLATFORMS: linux/amd64,linux/arm64
11     APACHE_IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/lbbs-apache
12     PHP_IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/lbbs-php
13    
14     jobs:
15    
16     build:
17    
18     runs-on: ubuntu-latest
19    
20     steps:
21     - uses: actions/checkout@v4
22    
23     - name: Set up QEMU
24     uses: docker/setup-qemu-action@v3
25    
26     - name: Set up Docker Buildx
27     uses: docker/setup-buildx-action@v3
28    
29     - name: Build the Docker image (apache)
30     id: build-apache
31     uses: docker/build-push-action@v5
32     with:
33     platforms: ${{ env.DOCKERHUB_PLATFORMS }}
34     context: .
35     file: Dockerfile/dockerfile.apache
36     tags: |
37     ${{ env.APACHE_IMAGE }}:dev
38     labels: ${{ steps.meta.outputs.labels }}
39    
40     - name: Build the Docker image (php)
41     id: build-php
42     uses: docker/build-push-action@v5
43     with:
44     platforms: ${{ env.DOCKERHUB_PLATFORMS }}
45     context: .
46     file: Dockerfile/dockerfile.php
47     tags: |
48     ${{ env.APACHE_IMAGE }}:dev
49     labels: ${{ steps.meta.outputs.labels }}

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