Skip to content

Commit

Permalink
ci(backend): setup arm64 architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
mael-app committed Jan 16, 2025
1 parent a0254c7 commit f894fcc
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: arm

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

Expand All @@ -29,22 +34,22 @@ jobs:
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64/v8
push: true
tags: |
${{ secrets.REGISTRY_URL }}/tekbetter/tekbetter-server:latest
${{ secrets.REGISTRY_URL }}/tekbetter/tekbetter-server:${{ github.sha }}
platforms: linux/amd64,linux/arm64
- name: Build and push Docker image for AMD64 and ARM64 with dev tag
if: github.ref == 'refs/heads/dev-production'
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64/v8
push: true
tags: |
${{ secrets.REGISTRY_URL }}/tekbetter/tekbetter-server:development
${{ secrets.REGISTRY_URL }}/tekbetter/tekbetter-server:${{ github.sha }}
platforms: linux/amd64,linux/arm64
- name: Logout from Docker Hub
run: docker logout ${{ secrets.REGISTRY_URL }}

0 comments on commit f894fcc

Please sign in to comment.