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

Annotation of /lbbs/.github/workflows/docker-publish.yml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations)
Sat Jan 10 06:53:46 2026 UTC (2 months ago) by sysadm
Branch: MAIN
Changes since 1.2: +8 -0 lines
Content type: application/yaml
Add multi-platform build

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     release:
14     types: [published]
15    
16     env:
17 sysadm 1.3 DOCKERHUB_PLATFORMS: linux/amd64,linux/arm64
18 sysadm 1.1 BBSD_IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/lbbs-bbsd
19    
20     jobs:
21     push_to_registry:
22     name: Push Docker image to Docker Hub
23     runs-on: ubuntu-latest
24     permissions:
25     packages: write
26     contents: read
27     attestations: write
28     id-token: write
29     steps:
30     - name: Check out the repo
31     uses: actions/checkout@v5
32    
33     - name: Log in to Docker Hub
34     uses: docker/login-action@v3
35     with:
36     username: ${{ secrets.DOCKERHUB_USERNAME }}
37     password: ${{ secrets.DOCKERHUB_TOKEN }}
38    
39 sysadm 1.3 - name: Set up QEMU
40     uses: docker/setup-qemu-action@v3
41    
42     - name: Set up Docker Buildx
43     uses: docker/setup-buildx-action@v3
44    
45 sysadm 1.1 - name: Build and push Docker image
46     id: push-bbsd
47     uses: docker/build-push-action@v5
48     with:
49 sysadm 1.3 platforms: ${{ env.DOCKERHUB_PLATFORMS }}
50 sysadm 1.1 context: .
51     file: ./Dockerfile/dockerfile.bbsd
52     push: true
53     tags: |
54     ${{ env.BBSD_IMAGE }}:${{ github.ref_name }}
55     ${{ env.BBSD_IMAGE }}:latest
56     labels: ${{ steps.meta.outputs.labels }}

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