-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
github action: add apt-get package and separate amd64 and arm64 builds
Looks like only arm64 is failing
- Loading branch information
Showing
2 changed files
with
53 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,16 +8,53 @@ on: | |
push: | ||
branches: [ "master" ] | ||
jobs: | ||
push_to_registry: | ||
name: Push Docker image to Docker Hub | ||
push_to_registry_amd64: | ||
name: Push Docker image to Docker Hub (amd64) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Log in to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKER_DALE_LOGIN }} | ||
password: ${{ secrets.DOCKER_DALE_PASSWORD }} | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: digitalmethodsinitiative/4cat | ||
|
||
- name: Build and push Docker image (amd64) | ||
uses: docker/[email protected] | ||
with: | ||
context: . | ||
file: docker/Dockerfile | ||
platforms: linux/amd64 | ||
push: true | ||
tags: digitalmethodsinitiative/4cat:latest | ||
retry: | ||
max-attempts: 2 | ||
delay-seconds: 30 | ||
|
||
push_to_registry_arm64: | ||
name: Push Docker image to Docker Hub (arm64) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
|
@@ -33,11 +70,14 @@ jobs: | |
with: | ||
images: digitalmethodsinitiative/4cat | ||
|
||
- name: Build and push Docker image | ||
- name: Build and push Docker image (arm64) | ||
uses: docker/[email protected] | ||
with: | ||
context: . | ||
file: docker/Dockerfile | ||
platforms: linux/amd64,linux/arm64 | ||
platforms: linux/arm64 | ||
push: true | ||
tags: digitalmethodsinitiative/4cat:latest | ||
retry: | ||
max-attempts: 2 | ||
delay-seconds: 30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters