Enhance GitHub Actions for multi-architecture builds
This commit is contained in:
parent
6c3cd64e77
commit
41e6640528
13
.github/workflows/deploy_ghcr.yml
vendored
13
.github/workflows/deploy_ghcr.yml
vendored
@ -3,7 +3,7 @@ name: Build and Push to GHCR
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- chatwoot-jasmine # sua branch
|
||||
- chatwoot-jasmine
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@ -16,6 +16,12 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
@ -23,12 +29,11 @@ jobs:
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Build and Push
|
||||
- name: Build and Push (multi-arch)
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: ./docker/Dockerfile
|
||||
push: true
|
||||
platforms: linux/amd64,linux/arm64
|
||||
tags: ghcr.io/rodribm10/chatwoot-jasmine:latest
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user