Skip to content

Commit 3de8bb6

Browse files
authored
add arm64 support to workflow
1 parent 03fc8d9 commit 3de8bb6

File tree

1 file changed

+9
-23
lines changed

1 file changed

+9
-23
lines changed

.github/workflows/docker-image.yml

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -24,28 +24,14 @@ jobs:
2424
username: ${{ github.actor }}
2525
password: ${{ secrets.GITHUB_TOKEN }}
2626

27-
- name: Change String Case
28-
id: case
29-
uses: ASzc/change-string-case-action@v2
30-
with:
31-
string: ${{ github.repository }}
32-
33-
- name: Display repository name
34-
run: echo ${{ steps.case.outputs.lowercase }}
27+
- name: Set up Docker Buildx
28+
uses: docker/setup-buildx-action@v3
3529

36-
- name: Find-and-replace strings
37-
id: slash
38-
uses: mad9000/actions-find-and-replace-string@2
30+
- name: Build and push Docker image
31+
uses: docker/build-push-action@v5
3932
with:
40-
source: ${{ github.ref_name }}
41-
find: '/'
42-
replace: '-'
43-
44-
- name: Display issue name
45-
run: echo ${{ steps.slash.outputs.value }}
46-
47-
- name: Build the Docker image
48-
run: |
49-
docker build . --file Dockerfile.ace --tag equal-access-server:latest
50-
docker tag equal-access-server:latest ${{ env.REGISTRY }}/${{ steps.case.outputs.lowercase }}:${{ steps.slash.outputs.value }}
51-
docker push ${{ env.REGISTRY }}/${{ steps.case.outputs.lowercase }}:${{ steps.slash.outputs.value }}
33+
context: .
34+
file: Dockerfile.ace
35+
push: true
36+
platforms: linux/amd64,linux/arm64
37+
tags: ghcr.io/${{ github.repository }}:${{ github.ref_name }}

0 commit comments

Comments
 (0)