Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Coder
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Synced
Coder
Commits
31a37025
Unverified
Commit
31a37025
authored
1 year ago
by
Dean Sheather
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
fix: build for all platforms in depot release pt. 2 (#6407)
parent
9af03d61
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/docker-base.yaml
+30
-4
30 additions, 4 deletions
.github/workflows/docker-base.yaml
.github/workflows/release.yaml
+30
-4
30 additions, 4 deletions
.github/workflows/release.yaml
with
60 additions
and
8 deletions
.github/workflows/docker-base.yaml
+
30
−
4
View file @
31a37025
...
...
@@ -53,12 +53,38 @@ jobs:
project
:
wl5hnrrkns
context
:
base-build-context
file
:
scripts/Dockerfile.base
platforms
:
-
linux/amd64
-
linux/arm64
-
linux/arm/v7
platforms
:
linux/amd64,linux/arm64,linux/arm/v7
pull
:
true
no-cache
:
true
push
:
true
tags
:
|
ghcr.io/coder/coder-base:latest
-
name
:
Verify that images are pushed properly
run
:
|
# retry 10 times with a 5 second delay as the images may not be
# available immediately
for i in {1..10}; do
rc=0
raw_manifests=$(docker buildx imagetools inspect --raw ghcr.io/coder/coder-base:latest) || rc=$?
if [[ "$rc" -eq 0 ]]; then
break
fi
if [[ "$i" -eq 10 ]]; then
echo "Failed to pull manifests after 10 retries"
exit 1
fi
echo "Failed to pull manifests, retrying in 5 seconds"
sleep 5
done
manifests=$(
echo "$raw_manifests" | \
jq -r '.manifests[].platform | .os + "/" + .architecture + (if .variant then "/" + .variant else "" end)'
)
# Verify all 3 platforms are present.
set -euxo pipefail
echo "$manifests" | grep -q linux/amd64
echo "$manifests" | grep -q linux/arm64
echo "$manifests" | grep -q linux/arm/v7
This diff is collapsed.
Click to expand it.
.github/workflows/release.yaml
+
30
−
4
View file @
31a37025
...
...
@@ -188,16 +188,42 @@ jobs:
project
:
wl5hnrrkns
context
:
base-build-context
file
:
scripts/Dockerfile.base
platforms
:
-
linux/amd64
-
linux/arm64
-
linux/arm/v7
platforms
:
linux/amd64,linux/arm64,linux/arm/v7
pull
:
true
no-cache
:
true
push
:
true
tags
:
|
${{ steps.image-base-tag.outputs.tag }}
-
name
:
Verify that images are pushed properly
run
:
|
# retry 10 times with a 5 second delay as the images may not be
# available immediately
for i in {1..10}; do
rc=0
raw_manifests=$(docker buildx imagetools inspect --raw "${{ steps.image-base-tag.outputs.tag }}") || rc=$?
if [[ "$rc" -eq 0 ]]; then
break
fi
if [[ "$i" -eq 10 ]]; then
echo "Failed to pull manifests after 10 retries"
exit 1
fi
echo "Failed to pull manifests, retrying in 5 seconds"
sleep 5
done
manifests=$(
echo "$raw_manifests" | \
jq -r '.manifests[].platform | .os + "/" + .architecture + (if .variant then "/" + .variant else "" end)'
)
# Verify all 3 platforms are present.
set -euxo pipefail
echo "$manifests" | grep -q linux/amd64
echo "$manifests" | grep -q linux/arm64
echo "$manifests" | grep -q linux/arm/v7
-
name
:
Build Linux Docker images
run
:
|
set -euxo pipefail
...
...
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