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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations)
Sat Jan 24 15:26:22 2026 UTC (7 weeks, 3 days ago) by sysadm
Branch: MAIN
Changes since 1.3: +13 -0 lines
Content type: application/yaml
Prevent concurrent workflow

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

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