| 13 |
release: |
release: |
| 14 |
types: [published] |
types: [published] |
| 15 |
|
|
| 16 |
|
concurrency: |
| 17 |
|
group: ${{ github.workflow }}-${{ github.ref }} |
| 18 |
|
cancel-in-progress: true |
| 19 |
|
|
| 20 |
env: |
env: |
| 21 |
|
DOCKERHUB_PLATFORMS: linux/amd64,linux/arm64 |
| 22 |
BBSD_IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/lbbs-bbsd |
BBSD_IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/lbbs-bbsd |
| 23 |
|
|
| 24 |
jobs: |
jobs: |
| 40 |
username: ${{ secrets.DOCKERHUB_USERNAME }} |
username: ${{ secrets.DOCKERHUB_USERNAME }} |
| 41 |
password: ${{ secrets.DOCKERHUB_TOKEN }} |
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 |
- name: Build and push Docker image |
| 56 |
id: push-bbsd |
id: push-bbsd |
| 57 |
uses: docker/build-push-action@v5 |
uses: docker/build-push-action@v5 |
| 58 |
with: |
with: |
| 59 |
|
platforms: ${{ env.DOCKERHUB_PLATFORMS }} |
| 60 |
context: . |
context: . |
| 61 |
file: ./Dockerfile/dockerfile.bbsd |
file: ./Dockerfile/dockerfile.bbsd |
| 62 |
push: true |
push: true |
| 63 |
tags: | |
tags: | |
| 64 |
${{ env.BBSD_IMAGE }}:${{ github.ref_name }} |
${{ env.BBSD_IMAGE }}:${{ github.ref_name }} |
| 65 |
${{ env.BBSD_IMAGE }}:latest |
${{ env.BBSD_IMAGE }}:latest |
| 66 |
|
${{ steps.meta.outputs.tags }} |
| 67 |
labels: ${{ steps.meta.outputs.labels }} |
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 |