Skip to content

Commit

Permalink
ci: build docker images for x86 and arm processors
Browse files Browse the repository at this point in the history
fixes #83

Signed-off-by: Max Albrecht <[email protected]>
  • Loading branch information
eins78 committed May 30, 2024
1 parent 5df5c16 commit e0e5152
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/docker-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Docker Nightly
on:
# This can be used to automatically publish nightlies at UTC nighttime
schedule:
- cron: '0 1 * * *' # run at 1 AM UTC
- cron: "0 1 * * *" # run at 1 AM UTC
# This can be used to allow manually triggering nightlies from the web interface
workflow_dispatch:

Expand Down Expand Up @@ -50,22 +50,27 @@ jobs:
steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- id: lowercase-repo
name: Lowercase repository name
run: |
echo "repository=${GITHUB_REPOSITORY@L}" >> $GITHUB_OUTPUT
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ steps.lowercase-repo.outputs.repository }}:nightly
platforms: linux/amd64,linux/arm64

- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v4
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: mcpringle/apus:${{ github.event.release.tag_name }}
platforms: linux/amd64,linux/arm64

0 comments on commit e0e5152

Please sign in to comment.