chore: π€ NEXTAUTH_URL #64
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Images CI | |
on: | |
push: | |
tags: | |
- "*" | |
workflow_dispatch: | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- dockerfile: Dockerfile.hub | |
tag: serverhub:latest | |
- dockerfile: Dockerfile.web | |
tag: serverbee-web:latest | |
- dockerfile: Dockerfile.interactor | |
tag: serverbee-interactor:latest | |
- dockerfile: Dockerfile.recorder | |
tag: serverbee-recorder:latest | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v3 | |
- name: Set up QEMU πΏ | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx π© | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to DockerHub πΆ | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and push ${{ matrix.tag }} π² | |
uses: docker/build-push-action@v3 | |
with: | |
context: . | |
platforms: linux/amd64,linux/arm64 | |
# can not compile linux/arm64 in Github Action | |
# | |
# Manually compile | |
# 1. Build mirror images of different platforms | |
# - `docker build -t zingerbee/amd64-serverbee-web -f docker/Dockerfile .` in amd64 CPU | |
# - `docker build -t zingerbee/arm64-serverbee-web -f docker/Dockerfile .` in arm64 CPU | |
# 2. Push mirror images to DockerHub | |
# `docker login` | |
# - `docker push zingerbee/amd64-serverbee-web` | |
# - `docker push zingerbee/arm64-serverbee-web` | |
# 3. Create manifest | |
# `docker manifest create zingerbee/serverbee-web zingerbee/amd64-serverbee-web zingerbee/arm64-serverbee-web` | |
# 4. Set manifest | |
# - `docker manifest annotate zingerbee/serverbee-web:latest zingerbee/amd64-serverbee-web:latest --os linux --arch amd64` | |
# - `docker manifest annotate zingerbee/serverbee-web:latest zingerbee/arm64-serverbee-web:latest --os linux --arch arm64` | |
# (Optional) Inspect manifest | |
# `docker manifest inspect zingerbee/serverbee-web` | |
# 5. Push manifest | |
# `docker manifest push zingerbee/serverbee-web` | |
file: ./docker/${{ matrix.dockerfile }} | |
push: true | |
# `zingerbee/arm64-serverbee-web:latest` need manually compile and publish | |
tags: zingerbee/${{ matrix.tag }} | |
# tags: zingerbee/amd64-serverbee-web:latest |