diff options
author | akshay <[email protected]> | 2025-01-10 17:34:43 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2025-01-10 17:34:43 +0000 |
commit | f983c1313cd17fc5acf5f703638ec53e15c831bf (patch) | |
tree | 038baabd8c8b6b1173217da35d8acb560fe79be7 | |
parent | 21eba43cca9536e41795f088d64f8f5722f8ef10 (diff) | |
parent | c4351a658e294c4620897763e6744ce137597c35 (diff) |
Merge pull request #19 from Floppy/patch-1
Add ARM64 build to docker publish workflow
-rw-r--r-- | .github/workflows/publish-docker.yml | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/.github/workflows/publish-docker.yml b/.github/workflows/publish-docker.yml index 9083701..45e060e 100644 --- a/.github/workflows/publish-docker.yml +++ b/.github/workflows/publish-docker.yml | |||
@@ -13,9 +13,6 @@ jobs: | |||
13 | - name: checkout repository | 13 | - name: checkout repository |
14 | uses: actions/checkout@v4 | 14 | uses: actions/checkout@v4 |
15 | 15 | ||
16 | - name: build docker image | ||
17 | run: docker build -t lurker:latest . | ||
18 | |||
19 | - name: log in to github container registry | 16 | - name: log in to github container registry |
20 | uses: docker/login-action@v3 | 17 | uses: docker/login-action@v3 |
21 | with: | 18 | with: |
@@ -23,7 +20,17 @@ jobs: | |||
23 | username: ${{ github.actor }} | 20 | username: ${{ github.actor }} |
24 | password: ${{ secrets.GITHUB_TOKEN }} | 21 | password: ${{ secrets.GITHUB_TOKEN }} |
25 | 22 | ||
26 | - name: publish docker image | 23 | - name: Set up QEMU |
27 | run: | | 24 | uses: docker/setup-qemu-action@v3 |
28 | docker tag lurker:latest ghcr.io/${{ github.repository_owner }}/lurker:latest | 25 | |
29 | docker push ghcr.io/${{ github.repository_owner }}/lurker:latest | 26 | - name: Set up Docker Buildx |
27 | uses: docker/setup-buildx-action@v3 | ||
28 | |||
29 | - name: Build and push | ||
30 | id: build | ||
31 | uses: docker/build-push-action@v6 | ||
32 | with: | ||
33 | context: . | ||
34 | platforms: linux/amd64,linux/arm64 | ||
35 | push: true | ||
36 | tags: ghcr.io/${{ github.repository_owner }}/lurker:latest | ||