Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
66be20f1
Unverified
Commit
66be20f1
authored
Dec 06, 2023
by
Pedro Tashima
Committed by
GitHub
Dec 06, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove s390x (#9000)
Signed-off-by:
Pedro Tashima
<
pedro.tashima@suse.com
>
Co-authored-by:
Pedro Tashima
<
pedro.tashima@suse.com
>
parent
d00ad9db
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
126 deletions
+1
-126
.drone.yml
.drone.yml
+0
-125
manifest
scripts/manifest
+1
-1
No files found.
.drone.yml
View file @
66be20f1
...
@@ -404,130 +404,6 @@ volumes:
...
@@ -404,130 +404,6 @@ volumes:
---
---
kind
:
pipeline
kind
:
pipeline
name
:
s390x
platform
:
os
:
linux
arch
:
amd64
# Hack needed for s390x: https://gist.github.com/colstrom/c2f359f72658aaabb44150ac20b16d7c#gistcomment-3858388
node
:
arch
:
s390x
trigger
:
event
:
exclude
:
-
cron
clone
:
disable
:
true
steps
:
-
name
:
clone
image
:
alpine/git:v2.30.2-s390x
commands
:
-
git clone $DRONE_GIT_HTTP_URL .
-
git fetch origin $DRONE_COMMIT_REF
-
git checkout $DRONE_COMMIT -b origin/$DRONE_TARGET_BRANCH
-
name
:
skipfiles
image
:
alpine/git:v2.30.2-s390x
commands
:
-
export NAME=$(test $DRONE_BUILD_EVENT = pull_request && echo remotes/origin/${DRONE_COMMIT_BRANCH:-master} || echo ${DRONE_COMMIT_SHA}~)
-
export DIFF=$(git --no-pager diff --name-only $NAME | grep -v -f .droneignore);
-
if [ -z "$DIFF" ]; then
echo "All files in PR are on ignore list";
exit 78;
else
echo "Some files in PR are not ignored, $DIFF";
fi;
when
:
event
:
-
pull_request
-
name
:
build
image
:
rancher/dapper:v0.5.8
secrets
:
[
AWS_SECRET_ACCESS_KEY-k3s-ci-uploader
,
AWS_ACCESS_KEY_ID-k3s-ci-uploader
]
environment
:
AWS_SECRET_ACCESS_KEY
:
from_secret
:
AWS_SECRET_ACCESS_KEY-k3s-ci-uploader
AWS_ACCESS_KEY_ID
:
from_secret
:
AWS_ACCESS_KEY_ID-k3s-ci-uploader
commands
:
-
dapper ci
-
echo "${DRONE_TAG}-s390x" | sed -e 's/+/-/g' >.tags
volumes
:
-
name
:
docker
path
:
/var/run/docker.sock
-
name
:
github_binary_release
image
:
rancher/drone-images:github-release-s390x
settings
:
api_key
:
from_secret
:
github_token
prerelease
:
true
checksum
:
-
sha256
checksum_file
:
CHECKSUMsum-s390x.txt
checksum_flatten
:
true
files
:
-
"
dist/artifacts/*"
when
:
instance
:
-
drone-publish.k3s.io
ref
:
-
refs/head/master
-
refs/tags/*
event
:
-
tag
-
name
:
docker-publish
image
:
rancher/drone-images:docker-s390x
volumes
:
-
name
:
docker
path
:
/var/run/docker.sock
settings
:
dockerfile
:
package/Dockerfile
password
:
from_secret
:
docker_password
repo
:
"
rancher/k3s"
username
:
from_secret
:
docker_username
when
:
instance
:
-
drone-publish.k3s.io
ref
:
-
refs/head/master
-
refs/tags/*
event
:
-
tag
-
name
:
test
image
:
rancher/dapper:v0.5.8
secrets
:
[
AWS_SECRET_ACCESS_KEY-k3s-ci-uploader
,
AWS_ACCESS_KEY_ID-k3s-ci-uploader
]
environment
:
ENABLE_REGISTRY
:
'
true'
AWS_SECRET_ACCESS_KEY
:
from_secret
:
AWS_SECRET_ACCESS_KEY-k3s-ci-uploader
AWS_ACCESS_KEY_ID
:
from_secret
:
AWS_ACCESS_KEY_ID-k3s-ci-uploader
commands
:
# we hardcode s390x as the arch because DRONE_STAGE_ARCH is set to amd64
-
docker build --target test-k3s -t k3s:test-s390x-${DRONE_COMMIT} -f Dockerfile.test .
-
>
docker run -i -e REPO -e TAG -e DRONE_TAG -e DRONE_BUILD_EVENT -e IMAGE_NAME -e AWS_SECRET_ACCESS_KEY -e AWS_ACCESS_KEY_ID -e SONOBUOY_VERSION -e ENABLE_REGISTRY
-v /var/run/docker.sock:/var/run/docker.sock --privileged --network host -v /tmp:/tmp k3s:test-s390x-${DRONE_COMMIT}
volumes
:
-
name
:
docker
path
:
/var/run/docker.sock
volumes
:
-
name
:
docker
host
:
path
:
/var/run/docker.sock
---
kind
:
pipeline
name
:
validate_go_mods
name
:
validate_go_mods
platform
:
platform
:
...
@@ -627,7 +503,6 @@ trigger:
...
@@ -627,7 +503,6 @@ trigger:
depends_on
:
depends_on
:
-
amd64
-
amd64
-
arm64
-
arm64
-
s390x
-
arm
-
arm
---
---
...
...
scripts/manifest
View file @
66be20f1
...
@@ -14,7 +14,7 @@ DOCKER_TAG=$(echo "${DRONE_TAG}" | sed -e 's/+/-/g')
...
@@ -14,7 +14,7 @@ DOCKER_TAG=$(echo "${DRONE_TAG}" | sed -e 's/+/-/g')
# export variables for drone-manifest
# export variables for drone-manifest
export
PLUGIN_TEMPLATE
=
"
${
REPO
}
:
${
DOCKER_TAG
}
-ARCH"
export
PLUGIN_TEMPLATE
=
"
${
REPO
}
:
${
DOCKER_TAG
}
-ARCH"
export
PLUGIN_PLATFORMS
=
"linux/amd64,linux/arm64,linux/arm
,linux/s390x
"
export
PLUGIN_PLATFORMS
=
"linux/amd64,linux/arm64,linux/arm"
# push current version manifest tag to docker hub
# push current version manifest tag to docker hub
PLUGIN_TARGET
=
"
${
REPO
}
:
${
DOCKER_TAG
}
"
drone-manifest
PLUGIN_TARGET
=
"
${
REPO
}
:
${
DOCKER_TAG
}
"
drone-manifest
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment