Merge pull request #68 from tigerblue77/57-multi-arch-container-images

Updated GitHub actions and added ARM64 architecture support
This commit is contained in:
Tigerblue77 2024-01-20 23:09:11 +01:00 committed by GitHub
commit 384b9558b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 19 additions and 5 deletions

View file

@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Remove "_Docker" suffix from GitHub repository name to use it as image name - name: Remove "_Docker" suffix from GitHub repository name to use it as image name
uses: mad9000/actions-find-and-replace-string@3 uses: mad9000/actions-find-and-replace-string@3
@ -24,7 +24,7 @@ jobs:
- name: Docker meta - name: Docker meta
id: meta id: meta
uses: docker/metadata-action@v4 uses: docker/metadata-action@v5
with: with:
images: | images: |
${{ steps.docker_image_name.outputs.value }} ${{ steps.docker_image_name.outputs.value }}
@ -32,25 +32,29 @@ jobs:
tags: type=raw,value=latest tags: type=raw,value=latest
- name: Login to Docker Hub - name: Login to Docker Hub
uses: docker/login-action@v2 uses: docker/login-action@v3
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry - name: Login to GitHub Container Registry
uses: docker/login-action@v2 uses: docker/login-action@v3
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2 uses: docker/setup-buildx-action@v3
- name: Build and publish Docker image - name: Build and publish Docker image
uses: docker/build-push-action@v4 uses: docker/build-push-action@v4
with: with:
context: . context: .
platforms: linux/amd64,linux/arm64
file: ./Dockerfile file: ./Dockerfile
push: true push: true
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}

View file

@ -12,6 +12,7 @@ Download Docker image from :
<summary>Table of Contents</summary> <summary>Table of Contents</summary>
<ol> <ol>
<li><a href="#container-console-log-example">Container console log example</a></li> <li><a href="#container-console-log-example">Container console log example</a></li>
<li><a href="#supported-architectures">Supported architectures</a></li>
<li><a href="#usage">Usage</a></li> <li><a href="#usage">Usage</a></li>
<li><a href="#parameters">Parameters</a></li> <li><a href="#parameters">Parameters</a></li>
<li><a href="#troubleshooting">Troubleshooting</a></li> <li><a href="#troubleshooting">Troubleshooting</a></li>
@ -57,6 +58,15 @@ ipmitool -I lanplus \
<p align="right">(<a href="#top">back to top</a>)</p> <p align="right">(<a href="#top">back to top</a>)</p>
<!-- SUPPORTED ARCHITECTURES -->
## Supported architectures
This Docker container is currently built and available for the following CPU architectures :
- AMD64
- ARM64
<p align="right">(<a href="#top">back to top</a>)</p>
<!-- USAGE --> <!-- USAGE -->
## Usage ## Usage