| 10 |
name: Publish Docker image |
name: Publish Docker image |
| 11 |
|
|
| 12 |
on: |
on: |
| 13 |
release: |
schedule: |
| 14 |
types: [published] |
# Run every day 05:10 UTC+8 |
| 15 |
|
- cron: '10 21 * * *' |
| 16 |
|
|
| 17 |
env: |
env: |
| 18 |
APACHE_IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/lbbs-apache |
APACHE_IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/lbbs-apache |
| 29 |
attestations: write |
attestations: write |
| 30 |
id-token: write |
id-token: write |
| 31 |
steps: |
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 |
- name: Checkout repository and submodules |
| 36 |
uses: actions/checkout@v4 |
uses: actions/checkout@v4 |
| 37 |
with: |
with: |
| 82 |
file: Dockerfile/dockerfile.apache.testing |
file: Dockerfile/dockerfile.apache.testing |
| 83 |
push: true |
push: true |
| 84 |
tags: | |
tags: | |
| 85 |
${{ env.APACHE_IMAGE }}:testing-${{ github.ref_name }} |
${{ env.APACHE_IMAGE }}:testing-${{ env.BUILD_DATE }} |
| 86 |
${{ env.APACHE_IMAGE }}:testing |
${{ env.APACHE_IMAGE }}:testing |
| 87 |
labels: ${{ steps.meta.outputs.labels }} |
labels: ${{ steps.meta.outputs.labels }} |
| 88 |
|
|
| 94 |
file: Dockerfile/dockerfile.php.testing |
file: Dockerfile/dockerfile.php.testing |
| 95 |
push: true |
push: true |
| 96 |
tags: | |
tags: | |
| 97 |
${{ env.PHP_IMAGE }}:testing-${{ github.ref_name }} |
${{ env.PHP_IMAGE }}:testing-${{ env.BUILD_DATE }} |
| 98 |
${{ env.PHP_IMAGE }}:testing |
${{ env.PHP_IMAGE }}:testing |
| 99 |
labels: ${{ steps.meta.outputs.labels }} |
labels: ${{ steps.meta.outputs.labels }} |
| 100 |
|
|
| 106 |
file: Dockerfile/dockerfile.bbsd.testing |
file: Dockerfile/dockerfile.bbsd.testing |
| 107 |
push: true |
push: true |
| 108 |
tags: | |
tags: | |
| 109 |
${{ env.BBSD_IMAGE }}:testing-${{ github.ref_name }} |
${{ env.BBSD_IMAGE }}:testing-${{ env.BUILD_DATE }} |
| 110 |
${{ env.BBSD_IMAGE }}:testing |
${{ env.BBSD_IMAGE }}:testing |
| 111 |
labels: ${{ steps.meta.outputs.labels }} |
labels: ${{ steps.meta.outputs.labels }} |