/[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.1 - (hide annotations)
Mon Jan 5 12:15:08 2026 UTC (2 months, 1 week ago) by sysadm
Branch: MAIN
Content type: application/yaml
Add docker ignore and github action 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     release:
14     types: [published]
15    
16     env:
17     BBSD_IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/lbbs-bbsd
18    
19     jobs:
20     push_to_registry:
21     name: Push Docker image to Docker Hub
22     runs-on: ubuntu-latest
23     permissions:
24     packages: write
25     contents: read
26     attestations: write
27     id-token: write
28     steps:
29     - name: Check out the repo
30     uses: actions/checkout@v5
31    
32     - name: Log in to Docker Hub
33     uses: docker/login-action@v3
34     with:
35     username: ${{ secrets.DOCKERHUB_USERNAME }}
36     password: ${{ secrets.DOCKERHUB_TOKEN }}
37    
38     - name: Extract metadata (tags, labels) for Docker
39     id: meta
40     uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
41     with:
42     images: leafok/lbbs
43    
44     - name: Build and push Docker image
45     id: push-bbsd
46     uses: docker/build-push-action@v5
47     with:
48     context: .
49     file: ./Dockerfile/dockerfile.bbsd
50     push: true
51     tags: |
52     ${{ env.BBSD_IMAGE }}:${{ github.ref_name }}
53     ${{ env.BBSD_IMAGE }}:latest
54     labels: ${{ steps.meta.outputs.labels }}

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