Skip to content

Commit 90c2720

Browse files
authored
ci: add arm64 to base docker image platforms to build
1 parent 742ce5a commit 90c2720

1 file changed

Lines changed: 18 additions & 12 deletions

File tree

.github/workflows/build-base-app.yml

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,10 @@ on:
55
branches:
66
- 'main'
77
paths:
8-
- 'package.json'
9-
- 'requirements.txt'
108
- 'docker/base.Dockerfile'
119

1210
workflow_dispatch:
1311

14-
env:
15-
REGISTRY: ghcr.io
16-
IMAGE_NAME: datatracker-app-base
17-
1812
jobs:
1913
publish:
2014
runs-on: ubuntu-latest
@@ -25,12 +19,24 @@ jobs:
2519
steps:
2620
- uses: actions/checkout@v2
2721

28-
- name: Docker Build & Push
29-
uses: mr-smithers-excellent/docker-build-push@v5.6
22+
- name: Set up QEMU
23+
uses: docker/setup-qemu-action@v2
24+
25+
- name: Set up Docker Buildx
26+
uses: docker/setup-buildx-action@v2
27+
28+
- name: Login to GitHub Container Registry
29+
uses: docker/login-action@v2
3030
with:
31-
image: ${{ env.IMAGE_NAME }}
32-
tags: latest
33-
registry: ${{ env.REGISTRY }}
34-
dockerfile: docker/base.Dockerfile
31+
registry: ghcr.io
3532
username: ${{ github.actor }}
3633
password: ${{ secrets.GITHUB_TOKEN }}
34+
35+
- name: Docker Build & Push
36+
uses: docker/build-push-action@v3
37+
with:
38+
context: .
39+
file: docker/base.Dockerfile
40+
platforms: linux/amd64,linux/arm64
41+
push: true
42+
tags: ghcr.io/ietf-tools/datatracker-app-base:latest

0 commit comments

Comments
 (0)