Skip to content

Commit 384b955

Browse files
authored
Merge pull request #68 from tigerblue77/57-multi-arch-container-images
Updated GitHub actions and added ARM64 architecture support
2 parents dcf41e0 + 9f63561 commit 384b955

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

.github/workflows/build_and_publish_docker_image.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616

1717
- name: Remove "_Docker" suffix from GitHub repository name to use it as image name
1818
uses: mad9000/actions-find-and-replace-string@3
@@ -24,33 +24,37 @@ jobs:
2424

2525
- name: Docker meta
2626
id: meta
27-
uses: docker/metadata-action@v4
27+
uses: docker/metadata-action@v5
2828
with:
2929
images: |
3030
${{ steps.docker_image_name.outputs.value }}
3131
ghcr.io/${{ steps.docker_image_name.outputs.value }}
3232
tags: type=raw,value=latest
3333

3434
- name: Login to Docker Hub
35-
uses: docker/login-action@v2
35+
uses: docker/login-action@v3
3636
with:
3737
username: ${{ secrets.DOCKERHUB_USERNAME }}
3838
password: ${{ secrets.DOCKERHUB_TOKEN }}
3939

4040
- name: Login to GitHub Container Registry
41-
uses: docker/login-action@v2
41+
uses: docker/login-action@v3
4242
with:
4343
registry: ghcr.io
4444
username: ${{ github.repository_owner }}
4545
password: ${{ secrets.GITHUB_TOKEN }}
4646

47+
- name: Set up QEMU
48+
uses: docker/setup-qemu-action@v3
49+
4750
- name: Set up Docker Buildx
48-
uses: docker/setup-buildx-action@v2
51+
uses: docker/setup-buildx-action@v3
4952

5053
- name: Build and publish Docker image
5154
uses: docker/build-push-action@v4
5255
with:
5356
context: .
57+
platforms: linux/amd64,linux/arm64
5458
file: ./Dockerfile
5559
push: true
5660
tags: ${{ steps.meta.outputs.tags }}

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Download Docker image from :
1212
<summary>Table of Contents</summary>
1313
<ol>
1414
<li><a href="#container-console-log-example">Container console log example</a></li>
15+
<li><a href="#supported-architectures">Supported architectures</a></li>
1516
<li><a href="#usage">Usage</a></li>
1617
<li><a href="#parameters">Parameters</a></li>
1718
<li><a href="#troubleshooting">Troubleshooting</a></li>
@@ -57,6 +58,15 @@ ipmitool -I lanplus \
5758

5859
<p align="right">(<a href="#top">back to top</a>)</p>
5960

61+
<!-- SUPPORTED ARCHITECTURES -->
62+
## Supported architectures
63+
64+
This Docker container is currently built and available for the following CPU architectures :
65+
- AMD64
66+
- ARM64
67+
68+
<p align="right">(<a href="#top">back to top</a>)</p>
69+
6070
<!-- USAGE -->
6171
## Usage
6272

0 commit comments

Comments
 (0)