Skip to content

Commit b0d0928

Browse files
committed
ci: put arm docker builds in its own job (#1000)
1 parent 294ea81 commit b0d0928

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

.github/workflows/publish-server.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,50 @@ jobs:
4343
type=match,pattern=libsql-server-(.*),group=1
4444
type=raw,value=latest
4545
46+
- name: Build and push Docker image
47+
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
48+
with:
49+
context: .
50+
platforms: linux/amd64
51+
push: true
52+
tags: ${{ steps.meta.outputs.tags }}
53+
labels: ${{ steps.meta.outputs.labels }}
54+
cache-from: type=gha
55+
cache-to: type=gha,mode=max
56+
57+
build-and-push-image-arm:
58+
runs-on: ubuntu-latest
59+
permissions:
60+
contents: read
61+
packages: write
62+
63+
steps:
64+
- name: Checkout repository
65+
uses: actions/checkout@v3
66+
with:
67+
submodules: recursive
68+
69+
- name: Set up Docker Buildx
70+
uses: docker/setup-buildx-action@v3
71+
with:
72+
platforms: linux/arm64
73+
74+
- name: Log in to the Container registry
75+
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
76+
with:
77+
registry: ${{ env.REGISTRY }}
78+
username: ${{ github.actor }}
79+
password: ${{ secrets.GITHUB_TOKEN }}
80+
81+
- name: Extract metadata (tags, labels) for Docker
82+
id: meta
83+
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
84+
with:
85+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
86+
tags: |
87+
type=match,pattern=libsql-server-(.*),group=1
88+
type=raw,value=latest
89+
4690
- name: Build and push Docker image
4791
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
4892
with:

0 commit comments

Comments
 (0)