-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build Fedora+OpenSUSE arm64 container images #180
Merged
mergify
merged 4 commits into
samba-in-kubernetes:master
from
abachmann:build-arm64-images
Nov 27, 2024
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
38eb5bf
hack: add separate function to create common container engine args
abachmann c03dca9
hack: use buildx to cross-build images with docker
abachmann 4ec2571
workflows: build and push fedora arm64 images
abachmann e49ca06
workflows: build and push opensuse arm64 images
abachmann File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -45,11 +45,13 @@ jobs: | |
matrix: | ||
package_source: [default, nightly] | ||
os: [centos, fedora, opensuse] | ||
arch: [amd64] | ||
arch: [amd64, arm64] | ||
exclude: | ||
# there are no nightly packages for opensuse | ||
- package_source: nightly | ||
os: opensuse | ||
- os: centos | ||
arch: arm64 | ||
include: | ||
- package_source: devbuilds | ||
os: centos | ||
|
@@ -74,14 +76,16 @@ jobs: | |
matrix: | ||
package_source: [default, nightly] | ||
os: [centos, fedora, opensuse] | ||
arch: [amd64] | ||
arch: [amd64, arm64] | ||
exclude: | ||
# there are no nightly packages for opensuse | ||
- package_source: nightly | ||
os: opensuse | ||
# the distro packages for centos do not include an ad-dc | ||
- package_source: default | ||
os: centos | ||
- os: centos | ||
arch: arm64 | ||
runs-on: ubuntu-latest | ||
env: | ||
BUILDAH_FORMAT: oci | ||
|
@@ -101,7 +105,10 @@ jobs: | |
strategy: | ||
matrix: | ||
os: [centos, fedora, opensuse] | ||
arch: [amd64] | ||
arch: [amd64, arm64] | ||
exclude: | ||
- os: centos | ||
arch: arm64 | ||
runs-on: ubuntu-latest | ||
env: | ||
BUILDAH_FORMAT: oci | ||
|
@@ -250,11 +257,26 @@ jobs: | |
with: | ||
image: "samba-server:default-fedora-amd64" | ||
container_engine: ${{ env.CONTAINER_CMD }} | ||
- name: Fetch server default-fedora-arm64 | ||
uses: ishworkh/[email protected] | ||
with: | ||
image: "samba-server:default-fedora-arm64" | ||
container_engine: ${{ env.CONTAINER_CMD }} | ||
- name: Fetch server default-opensuse-arm64 | ||
uses: ishworkh/[email protected] | ||
with: | ||
image: "samba-server:default-opensuse-arm64" | ||
container_engine: ${{ env.CONTAINER_CMD }} | ||
- name: Fetch server nightly-fedora-amd64 | ||
uses: ishworkh/[email protected] | ||
with: | ||
image: "samba-server:nightly-fedora-amd64" | ||
container_engine: ${{ env.CONTAINER_CMD }} | ||
- name: Fetch server nightly-fedora-arm64 | ||
uses: ishworkh/[email protected] | ||
with: | ||
image: "samba-server:nightly-fedora-arm64" | ||
container_engine: ${{ env.CONTAINER_CMD }} | ||
- name: Fetch server nightly-centos-amd64 | ||
uses: ishworkh/[email protected] | ||
with: | ||
|
@@ -271,17 +293,42 @@ jobs: | |
with: | ||
image: "samba-ad-server:default-fedora-amd64" | ||
container_engine: ${{ env.CONTAINER_CMD }} | ||
- name: Fetch ad-server default-fedora-arm64 | ||
uses: ishworkh/[email protected] | ||
with: | ||
image: "samba-ad-server:default-fedora-arm64" | ||
container_engine: ${{ env.CONTAINER_CMD }} | ||
- name: Fetch ad-server default-opensuse-arm64 | ||
uses: ishworkh/[email protected] | ||
with: | ||
image: "samba-ad-server:default-opensuse-arm64" | ||
container_engine: ${{ env.CONTAINER_CMD }} | ||
- name: Fetch ad-server nightly-fedora-amd64 | ||
uses: ishworkh/[email protected] | ||
with: | ||
image: "samba-ad-server:nightly-fedora-amd64" | ||
container_engine: ${{ env.CONTAINER_CMD }} | ||
- name: Fetch ad-server nightly-fedora-arm64 | ||
uses: ishworkh/[email protected] | ||
with: | ||
image: "samba-ad-server:nightly-fedora-arm64" | ||
container_engine: ${{ env.CONTAINER_CMD }} | ||
# (client images) | ||
- name: Fetch client default-fedora-amd64 | ||
uses: ishworkh/[email protected] | ||
with: | ||
image: "samba-client:default-fedora-amd64" | ||
container_engine: ${{ env.CONTAINER_CMD }} | ||
- name: Fetch client default-fedora-arm64 | ||
uses: ishworkh/[email protected] | ||
with: | ||
image: "samba-client:default-fedora-arm64" | ||
container_engine: ${{ env.CONTAINER_CMD }} | ||
- name: Fetch client default-opensuse-arm64 | ||
uses: ishworkh/[email protected] | ||
with: | ||
image: "samba-client:default-opensuse-arm64" | ||
container_engine: ${{ env.CONTAINER_CMD }} | ||
# (toolbox images) | ||
- name: Fetch toolbox default-fedora-amd64 | ||
uses: ishworkh/[email protected] | ||
|
@@ -297,12 +344,20 @@ jobs: | |
--repo-base=${REPO_BASE} | ||
--no-distro-qualified | ||
-i samba-server:default-fedora-amd64 | ||
-i samba-server:default-fedora-arm64 | ||
-i samba-server:default-opensuse-arm64 | ||
-i samba-server:nightly-fedora-amd64 | ||
-i samba-server:nightly-fedora-arm64 | ||
-i samba-server:nightly-centos-amd64 | ||
-i samba-server:devbuilds-centos-amd64 | ||
-i samba-ad-server:default-fedora-amd64 | ||
-i samba-ad-server:default-fedora-arm64 | ||
-i samba-ad-server:default-opensuse-arm64 | ||
-i samba-ad-server:nightly-fedora-amd64 | ||
-i samba-ad-server:nightly-fedora-arm64 | ||
-i samba-client:default-fedora-amd64 | ||
-i samba-client:default-fedora-arm64 | ||
-i samba-client:default-opensuse-arm64 | ||
-i samba-toolbox:default-fedora-amd64 | ||
- name: Push images | ||
run: > | ||
|
@@ -313,10 +368,16 @@ jobs: | |
--push-state=exists | ||
--push-selected-tags=mixed | ||
-i ${REPO_BASE}/samba-server:default-fedora-amd64 | ||
-i ${REPO_BASE}/samba-server:default-fedora-arm64 | ||
-i ${REPO_BASE}/samba-server:default-opensuse-arm64 | ||
-i ${REPO_BASE}/samba-server:nightly-fedora-amd64 | ||
-i ${REPO_BASE}/samba-server:nightly-centos-amd64 | ||
-i ${REPO_BASE}/samba-server:devbuilds-centos-amd64 | ||
-i ${REPO_BASE}/samba-ad-server:default-fedora-amd64 | ||
-i ${REPO_BASE}/samba-ad-server:default-fedora-arm64 | ||
-i ${REPO_BASE}/samba-ad-server:default-opensuse-arm64 | ||
-i ${REPO_BASE}/samba-ad-server:nightly-fedora-amd64 | ||
-i ${REPO_BASE}/samba-client:default-fedora-amd64 | ||
-i ${REPO_BASE}/samba-client:default-fedora-arm64 | ||
-i ${REPO_BASE}/samba-client:default-opensuse-arm64 | ||
-i ${REPO_BASE}/samba-toolbox:default-fedora-amd64 |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to recommend skipping the tests for now. Let's just get the builds on emulated arm64 in this initial PR.