/[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.4 - (show annotations)
Thu Jan 22 10:00:46 2026 UTC (7 weeks, 6 days ago) by sysadm
Branch: MAIN
Changes since 1.3: +0 -3 lines
Content type: application/yaml
Update

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 push:
14 branches: [ "milestone" ]
15
16 env:
17 DOCKERHUB_PLATFORMS: linux/amd64,linux/arm64
18 APACHE_IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/lbbs-apache
19 PHP_IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/lbbs-php
20 BBSD_IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/lbbs-bbsd
21
22 jobs:
23 push_to_registry:
24 name: Push Docker image to Docker Hub
25 runs-on: ubuntu-latest
26 permissions:
27 packages: write
28 contents: read
29 attestations: write
30 id-token: write
31 steps:
32 - name: Set current date as env variable
33 run: echo "BUILD_DATE=$(date +%Y%m%d)" >> $GITHUB_ENV
34
35 - name: Checkout repository and submodules
36 uses: actions/checkout@v4
37 with:
38 submodules: recursive
39 fetch-depth: 0 # fetch all history if the action needs it
40
41 - name: Log in to Docker Hub
42 uses: docker/login-action@v3
43 with:
44 username: ${{ secrets.DOCKERHUB_USERNAME }}
45 password: ${{ secrets.DOCKERHUB_TOKEN }}
46
47 - name: Set up QEMU
48 uses: docker/setup-qemu-action@v3
49
50 - name: Set up Docker Buildx
51 uses: docker/setup-buildx-action@v3
52
53 - name: Build the Docker image (apache)
54 id: push-apache
55 uses: docker/build-push-action@v5
56 with:
57 platforms: ${{ env.DOCKERHUB_PLATFORMS }}
58 context: .
59 file: Dockerfile/dockerfile.apache.testing
60 push: true
61 tags: |
62 ${{ env.APACHE_IMAGE }}:testing-${{ env.BUILD_DATE }}
63 ${{ env.APACHE_IMAGE }}:testing
64 labels: ${{ steps.meta.outputs.labels }}
65
66 - name: Build the Docker image (php)
67 id: push-php
68 uses: docker/build-push-action@v5
69 with:
70 platforms: ${{ env.DOCKERHUB_PLATFORMS }}
71 context: .
72 file: Dockerfile/dockerfile.php.testing
73 push: true
74 tags: |
75 ${{ env.PHP_IMAGE }}:testing-${{ env.BUILD_DATE }}
76 ${{ env.PHP_IMAGE }}:testing
77 labels: ${{ steps.meta.outputs.labels }}
78
79 - name: Build the Docker image (bbsd)
80 id: push-bbsd
81 uses: docker/build-push-action@v5
82 with:
83 platforms: ${{ env.DOCKERHUB_PLATFORMS }}
84 context: .
85 file: Dockerfile/dockerfile.bbsd.testing
86 push: true
87 tags: |
88 ${{ env.BBSD_IMAGE }}:testing-${{ env.BUILD_DATE }}
89 ${{ env.BBSD_IMAGE }}:testing
90 labels: ${{ steps.meta.outputs.labels }}

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