Skip to content

Commit 445af5b

Browse files
committed
Make arm compatible
1 parent e8285d8 commit 445af5b

File tree

2 files changed

+26
-12
lines changed

2 files changed

+26
-12
lines changed

.github/workflows/publish_docker.yml

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,36 @@ on:
99
branches:
1010
- main
1111

12-
jobs:
13-
docker_publish:
14-
runs-on: "ubuntu-20.04"
12+
env:
13+
REGISTRY: ghcr.io
14+
IMAGE_NAME: ${{ github.repository }}
1515

16+
jobs:
17+
build-and-push-image:
18+
runs-on: ubuntu-latest
1619
permissions:
1720
contents: read
1821
packages: write
19-
attestations: write
20-
id-token: write
2122

2223
steps:
23-
- uses: actions/[email protected]
24+
- name: Checkout repository
25+
uses: actions/checkout@v4
26+
27+
- name: Log in to the Container registry
28+
uses: docker/login-action@v3
29+
with:
30+
registry: ${{ env.REGISTRY }}
31+
username: ${{ github.actor }}
32+
password: ${{ secrets.GITHUB_TOKEN }}
33+
34+
- name: Set up Docker Buildx
35+
uses: docker/setup-buildx-action@v3
2436

25-
# https://github.com/marketplace/actions/push-to-ghcr
26-
- name: Build and publish a Docker image for ${{ github.repository }}
27-
uses: macbre/push-to-ghcr@master
37+
- name: Build and push Docker image
38+
uses: docker/build-push-action@v6
2839
with:
29-
image_name: ${{ github.repository }}
30-
github_token: ${{ secrets.GITHUB_TOKEN }}
40+
context: .
41+
file: ./Dockerfile
42+
push: true
43+
tags: ${{ github.repository }}
44+
platforms: linux/amd64,linux/arm64,linux/arm/v7

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM node:22-alpine AS node
2-
FROM php:8.2.27-cli-alpine
2+
FROM php:8.2-cli-alpine
33

44
RUN apk add --no-cache libstdc++ libgcc jq git curl unzip sshpass openssh-client rsync bash
55

0 commit comments

Comments
 (0)