Skip to content

Commit 4a70bba

Browse files
committed
fix: back to one runner
1 parent 252bb81 commit 4a70bba

File tree

1 file changed

+3
-39
lines changed

1 file changed

+3
-39
lines changed

.github/workflows/docker.yml

Lines changed: 3 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- main
77

88
jobs:
9-
build-amd64:
9+
build:
1010
runs-on: ubuntu-24.04
1111
env:
1212
IMAGE_NAME: mikanbot
@@ -30,46 +30,10 @@ jobs:
3030
username: ${{ github.repository_owner }}
3131
password: ${{ secrets.CR_PAT }}
3232

33-
- name: Build and push (AMD64)
33+
- name: Build and push
3434
uses: docker/build-push-action@v6
3535
with:
36-
platforms: linux/amd64
37-
attests: false
38-
context: .
39-
push: true
40-
tags: |
41-
ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest
42-
ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
43-
44-
build-arm64:
45-
runs-on: ubuntu-24.04-arm
46-
env:
47-
IMAGE_NAME: mikanbot
48-
49-
steps:
50-
- name: Checkout code
51-
uses: actions/checkout@v2
52-
53-
- name: Set up QEMU
54-
uses: docker/setup-qemu-action@v3
55-
56-
- name: Set up Docker Buildx
57-
uses: docker/setup-buildx-action@v3
58-
with:
59-
platforms: linux/arm64
60-
61-
- name: Login to GitHub Container Registry
62-
uses: docker/login-action@v2
63-
with:
64-
registry: ghcr.io
65-
username: ${{ github.repository_owner }}
66-
password: ${{ secrets.CR_PAT }}
67-
68-
- name: Build and push (ARM64)
69-
uses: docker/build-push-action@v6
70-
with:
71-
platforms: linux/arm64
72-
attests: false
36+
platforms: linux/amd64,linux/arm64
7337
context: .
7438
push: true
7539
tags: |

0 commit comments

Comments
 (0)