Skip to content

Commit

Permalink
arm64 docker compile
Browse files Browse the repository at this point in the history
  • Loading branch information
lovehunter9 committed Jun 19, 2024
1 parent c9a8a2f commit 045c0e7
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/gateway.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,34 @@ jobs:
uses: actions/checkout@v3
with:
submodules: true

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

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

- uses: actions/setup-go@v2
with:
go-version: 1.18.3

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASS }}

- name: get latest tag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
id: get-latest-tag
with:
fallback: latest

- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: Dockerfile
push: true
tags: beclab/search2-gateway:${{ steps.get-latest-tag.outputs.tag }}

platforms: linux/amd64,linux/arm64

0 comments on commit 045c0e7

Please sign in to comment.