mirror of
https://github.com/khoaliber/LetterFeed.git
synced 2026-03-02 21:19:13 +00:00
feat: arm images
This commit is contained in:
62
.github/workflows/ci.yml
vendored
62
.github/workflows/ci.yml
vendored
@@ -62,13 +62,34 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build and publish a Docker image for backend
|
- name: Set up QEMU
|
||||||
uses: macbre/push-to-ghcr@master
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: Log in to GitHub Container Registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Docker meta for backend
|
||||||
|
id: meta_backend
|
||||||
|
uses: docker/metadata-action@v5
|
||||||
|
with:
|
||||||
|
images: ghcr.io/leonmuscoden/letterfeed-backend
|
||||||
|
|
||||||
|
- name: Build and push a Docker image for backend
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
image_name: LeonMusCoden/letterfeed-backend
|
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
dockerfile: backend/Dockerfile
|
|
||||||
context: backend/
|
context: backend/
|
||||||
|
file: backend/Dockerfile
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
|
push: true
|
||||||
|
tags: ${{ steps.meta_backend.outputs.tags }}
|
||||||
|
labels: ${{ steps.meta_backend.outputs.labels }}
|
||||||
|
|
||||||
docker_publish_frontend:
|
docker_publish_frontend:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -78,10 +99,31 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build and publish a Docker image for frontend
|
- name: Set up QEMU
|
||||||
uses: macbre/push-to-ghcr@master
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: Log in to GitHub Container Registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Docker meta for frontend
|
||||||
|
id: meta_frontend
|
||||||
|
uses: docker/metadata-action@v5
|
||||||
|
with:
|
||||||
|
images: ghcr.io/leonmuscoden/letterfeed-frontend
|
||||||
|
|
||||||
|
- name: Build and push a Docker image for frontend
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
image_name: LeonMusCoden/letterfeed-frontend
|
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
dockerfile: frontend/Dockerfile
|
|
||||||
context: frontend/
|
context: frontend/
|
||||||
|
file: frontend/Dockerfile
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
|
push: true
|
||||||
|
tags: ${{ steps.meta_frontend.outputs.tags }}
|
||||||
|
labels: ${{ steps.meta_frontend.outputs.labels }}
|
||||||
|
|||||||
Reference in New Issue
Block a user