Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
varac-home-assistant
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
varac-projects
varac-home-assistant
Commits
65a2598f
Unverified
Commit
65a2598f
authored
1 year ago
by
Varac
Browse files
Options
Downloads
Patches
Plain Diff
Build for aarch64
parent
0d8284af
No related branches found
No related tags found
1 merge request
!132
Build for aarch64
Pipeline
#177539
passed
1 year ago
Stage: build
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+4
-4
4 additions, 4 deletions
.gitlab-ci.yml
with
4 additions
and
4 deletions
.gitlab-ci.yml
+
4
−
4
View file @
65a2598f
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
build
:
build
:
stage
:
build
stage
:
build
# https://quay.io/repository/buildah/stable?tab=tags&tag=latest
# https://quay.io/repository/buildah/stable?tab=tags&tag=latest
# Based on Fedora Linux 38 (v1.32.0)
image
:
quay.io/buildah/stable:v1.32.0
image
:
quay.io/buildah/stable:v1.32.0
variables
:
variables
:
# Use vfs with buildah. Docker offers overlayfs as a default, but Buildah
# Use vfs with buildah. Docker offers overlayfs as a default, but Buildah
...
@@ -11,7 +12,6 @@ build:
...
@@ -11,7 +12,6 @@ build:
# Newer versions of docker can handle the OCI format, but older versions, like
# Newer versions of docker can handle the OCI format, but older versions, like
# the one shipped with Fedora 30, cannot handle the format.
# the one shipped with Fedora 30, cannot handle the format.
BUILDAH_FORMAT
:
docker
BUILDAH_FORMAT
:
docker
FQ_IMAGE_NAME
:
"
$CI_REGISTRY_IMAGE/test"
before_script
:
before_script
:
# GitLab Container Registry credentials taken from the
# GitLab Container Registry credentials taken from the
# [predefined CI/CD variables](../variables/index.md#predefined-cicd-variables)
# [predefined CI/CD variables](../variables/index.md#predefined-cicd-variables)
...
@@ -21,7 +21,7 @@ build:
...
@@ -21,7 +21,7 @@ build:
-
export version=$(grep 'FROM' Dockerfile|cut -d':' -f2)
-
export version=$(grep 'FROM' Dockerfile|cut -d':' -f2)
-
echo "Building image tag $version"
-
echo "Building image tag $version"
-
buildah images
-
buildah images
#
See
https://
github.com/containers/buildah/issues/1901#issuecomment-638119049
# https://
medium.com/oracledevs/building-multi-architecture-containers-with-buildah-44ed100ec3f3
-
buildah build --
isolation=chroot -t ${FQ_IMAGE_NAM
E}:${version}
-
buildah build --
platform linux/arm64/v8 -t ${CI_REGISTRY_IMAG
E}:${version}
-
buildah images
-
buildah images
-
buildah push ${
FQ_IMAGE_NAM
E}:${version}
-
buildah push ${
CI_REGISTRY_IMAG
E}:${version}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment