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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations)
Thu Jan 8 03:45:43 2026 UTC (2 months, 1 week ago) by sysadm
Branch: MAIN
Content type: application/yaml
Initial commit

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 APACHE_IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/lbbs-apache
18 PHP_IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/lbbs-php
19 BBSD_IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/lbbs-bbsd
20
21 jobs:
22 push_to_registry:
23 name: Push Docker image to Docker Hub
24 runs-on: ubuntu-latest
25 permissions:
26 packages: write
27 contents: read
28 attestations: write
29 id-token: write
30 steps:
31 - name: Checkout repository and submodules
32 uses: actions/checkout@v4
33 with:
34 submodules: recursive
35 fetch-depth: 0 # fetch all history if the action needs it
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: Extract metadata (tags, labels) for Docker
44 id: meta
45 uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
46 with:
47 images: leafok/lbbs
48
49 - name: Build the Docker image (apache)
50 uses: docker/build-push-action@v5
51 with:
52 context: ./leafok_bbs
53 file: ./leafok_bbs/Dockerfile/dockerfile.apache
54 tags: |
55 ${{ env.APACHE_IMAGE }}:latest
56
57 - name: Build the Docker image (php)
58 uses: docker/build-push-action@v5
59 with:
60 context: ./leafok_bbs
61 file: ./leafok_bbs/Dockerfile/dockerfile.php
62 tags: |
63 ${{ env.PHP_IMAGE }}:latest
64
65 - name: Build the Docker image (bbsd)
66 uses: docker/build-push-action@v5
67 with:
68 context: ./lbbs
69 file: ./lbbs/Dockerfile/dockerfile.bbsd
70 tags: |
71 ${{ env.BBSD_IMAGE }}:latest
72
73 - name: Build the Docker image (apache:testing)
74 id: push-apache
75 uses: docker/build-push-action@v5
76 with:
77 context: .
78 file: Dockerfile/dockerfile.apache.testing
79 push: true
80 tags: |
81 ${{ env.APACHE_IMAGE }}:testing-${{ github.ref_name }}
82 ${{ env.APACHE_IMAGE }}:testing
83 labels: ${{ steps.meta.outputs.labels }}
84
85 - name: Build the Docker image (php:testing)
86 id: push-php
87 uses: docker/build-push-action@v5
88 with:
89 context: .
90 file: Dockerfile/dockerfile.php.testing
91 push: true
92 tags: |
93 ${{ env.PHP_IMAGE }}:testing-${{ github.ref_name }}
94 ${{ env.PHP_IMAGE }}:testing
95 labels: ${{ steps.meta.outputs.labels }}
96
97 - name: Build the Docker image (bbsd:testing)
98 id: push-bbsd
99 uses: docker/build-push-action@v5
100 with:
101 context: .
102 file: Dockerfile/dockerfile.bbsd.testing
103 push: true
104 tags: |
105 ${{ env.BBSD_IMAGE }}:testing-${{ github.ref_name }}
106 ${{ env.BBSD_IMAGE }}:testing
107 labels: ${{ steps.meta.outputs.labels }}

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