/[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.5 - (hide annotations)
Wed Jan 28 14:39:57 2026 UTC (6 weeks, 6 days ago) by sysadm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +5 -2 lines
Content type: application/yaml
Update workflow

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 sysadm 1.5 push:
14     tags:
15     - "v*.*.*"
16 sysadm 1.1
17 sysadm 1.4 concurrency:
18     group: ${{ github.workflow }}-${{ github.ref }}
19     cancel-in-progress: true
20    
21 sysadm 1.1 env:
22 sysadm 1.3 DOCKERHUB_PLATFORMS: linux/amd64,linux/arm64
23 sysadm 1.1 BBSD_IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/lbbs-bbsd
24    
25     jobs:
26     push_to_registry:
27     name: Push Docker image to Docker Hub
28     runs-on: ubuntu-latest
29     permissions:
30     packages: write
31     contents: read
32     attestations: write
33     id-token: write
34     steps:
35     - name: Check out the repo
36     uses: actions/checkout@v5
37    
38     - name: Log in to Docker Hub
39     uses: docker/login-action@v3
40     with:
41     username: ${{ secrets.DOCKERHUB_USERNAME }}
42     password: ${{ secrets.DOCKERHUB_TOKEN }}
43    
44 sysadm 1.3 - name: Set up QEMU
45     uses: docker/setup-qemu-action@v3
46    
47     - name: Set up Docker Buildx
48     uses: docker/setup-buildx-action@v3
49    
50 sysadm 1.4 - name: Extract Docker metadata
51     id: meta
52     uses: docker/metadata-action@v5
53     with:
54     images: ${{ env.BBSD_IMAGE }}
55    
56 sysadm 1.1 - name: Build and push Docker image
57     id: push-bbsd
58     uses: docker/build-push-action@v5
59     with:
60 sysadm 1.3 platforms: ${{ env.DOCKERHUB_PLATFORMS }}
61 sysadm 1.1 context: .
62     file: ./Dockerfile/dockerfile.bbsd
63     push: true
64 sysadm 1.5 provenance: true
65     sbom: true
66 sysadm 1.1 tags: |
67     ${{ env.BBSD_IMAGE }}:${{ github.ref_name }}
68     ${{ env.BBSD_IMAGE }}:latest
69 sysadm 1.4 ${{ steps.meta.outputs.tags }}
70 sysadm 1.1 labels: ${{ steps.meta.outputs.labels }}
71 sysadm 1.4 cache-from: type=gha # Pull cache from GitHub Actions cache
72     cache-to: type=gha,mode=max # Push cache to GitHub Actions cache

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