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
211d735a
Commit
211d735a
authored
Jan 20, 2020
by
Erik Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update manifest
parent
341a5553
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
8 deletions
+43
-8
.drone.yml
.drone.yml
+11
-8
Dockerfile.manifest
Dockerfile.manifest
+16
-0
manifest
scripts/manifest
+16
-0
No files found.
.drone.yml
View file @
211d735a
...
...
@@ -259,17 +259,20 @@ platform:
steps
:
-
name
:
manifest
image
:
rancher/dapper:v0.4.2
image
:
plugins/docker
environment
:
USERNAME
:
DOCKER_
USERNAME
:
from_secret
:
docker_username
PASSWORD
:
DOCKER_
PASSWORD
:
from_secret
:
docker_password
commands
:
-
export DOCKER_TAG=$(echo "${DRONE_TAG}" | sed -e 's/+/-/g')
-
docker login -u $env:USERNAME -p $env:PASSWORD
-
docker manifest create ${DOCKER_TAG} ${DOCKER_TAG}-amd64 ${DOCKER_TAG}-arm64 ${DOCKER_TAG}-arm
-
docker manifest push ${DOCKER_TAG}
settings
:
dry_run
:
true
dockerfile
:
Dockerfile.manifest
repo
:
"
rancher/k3s-manifest"
build_args_from_env
:
-
DOCKER_USERNAME
-
DOCKER_PASSWORD
-
DRONE_TAG
when
:
instance
:
-
drone-publish.rancher.io
...
...
Dockerfile.manifest
0 → 100644
View file @
211d735a
FROM golang:1.13.5-alpine3.10
COPY --from=plugins/manifest:1.2.3 /bin/* /bin/
ARG DOCKER_USERNAME
ENV DOCKER_USERNAME $DOCKER_USERNAME
ARG DOCKER_PASSWORD
ENV DOCKER_PASSWORD $DOCKER_PASSWORD
ARG DRONE_TAG
ENV DRONE_TAG $DRONE_TAG
COPY ./scripts/manifest /bin/
RUN manifest
scripts/manifest
0 → 100755
View file @
211d735a
#!/bin/sh
if
[
-z
"
${
DRONE_TAG
}
"
]
;
then
echo
"DRONE_TAG not defined"
>
&2
exit
1
fi
set
-e
-x
export
REPO
=
"rancher/k3s"
export
DRONE_TAG
=
$(
echo
"
${
DRONE_TAG
}
"
|
sed
-e
's/+/-/g'
)
export
PLUGIN_TARGET
=
"
${
REPO
}
:
${
DRONE_TAG
}
"
export
PLUGIN_TEMPLATE
=
"
${
REPO
}
:
${
DRONE_TAG
}
-ARCH"
export
PLUGIN_PLATFORMS
=
"linux/amd64,linux/arm64,linux/arm"
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