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

Diff of /lbbs/.github/workflows/docker-image.yml

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

Revision 1.2 by sysadm, Thu Jan 8 08:14:33 2026 UTC Revision 1.6 by sysadm, Wed Jan 28 14:39:57 2026 UTC
# Line 2  name: Docker Image CI Line 2  name: Docker Image CI
2    
3  on:  on:
4    push:    push:
5      branches: [ "main" ]      branches:
6    pull_request:        - "v*.*"
7      branches: [ "main" ]  
8    concurrency:
9      group: ${{ github.workflow }}-${{ github.ref }}
10      cancel-in-progress: true
11    
12    env:
13      DOCKERHUB_PLATFORMS: linux/amd64,linux/arm64
14      BBSD_IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/lbbs-bbsd
15    
16  jobs:  jobs:
17    
# Line 15  jobs: Line 22  jobs:
22      steps:      steps:
23      - uses: actions/checkout@v4      - uses: actions/checkout@v4
24    
25      - name: Build the Docker image      - name: Log in to Docker Hub
26        run: docker compose build        uses: docker/login-action@v3
27          with:
28            username: ${{ secrets.DOCKERHUB_USERNAME }}
29            password: ${{ secrets.DOCKERHUB_TOKEN }}
30    
31        - name: Set up QEMU
32          uses: docker/setup-qemu-action@v3
33    
34        - name: Set up Docker Buildx
35          uses: docker/setup-buildx-action@v3
36              
37        - name: Extract Docker metadata (bbsd)
38          id: meta-bbsd
39          uses: docker/metadata-action@v5
40          with:
41            images: ${{ env.BBSD_IMAGE }}
42              
43        - name: Build the Docker image (bbsd)
44          id: build-bbsd
45          uses: docker/build-push-action@v5
46          with:
47            platforms: ${{ env.DOCKERHUB_PLATFORMS }}
48            context: .
49            file: Dockerfile/dockerfile.bbsd
50            tags: |
51              ${{ steps.meta-bbsd.outputs.tags }}
52            labels: ${{ steps.meta-bbsd.outputs.labels }}
53            cache-from: type=gha # Pull cache from GitHub Actions cache
54            cache-to: type=gha,mode=max # Push cache to GitHub Actions cache


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

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