Publish k3s image to ghcr (#11835)

Signed-off-by: Derek Nola <derek.nola@suse.com>
This commit is contained in:
Derek Nola 2025-03-26 09:40:54 -07:00 committed by GitHub
parent d45006be66
commit 7fed27f62e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -105,6 +105,26 @@ steps:
event:
- tag
- name: ghcr-publish
image: plugins/docker
settings:
registry: ghcr.io
dockerfile: package/Dockerfile
username: "k3s-io"
password:
from_secret: github_token
repo: "ghcr.io/k3s-io/k3s"
build_args_from_env:
- DRONE_TAG
when:
instance:
- drone-publish.k3s.io
ref:
- refs/head/master
- refs/tags/*
event:
- tag
- name: test
image: rancher/dapper:v0.6.0
secrets: [ AWS_SECRET_ACCESS_KEY-k3s-ci-uploader, AWS_ACCESS_KEY_ID-k3s-ci-uploader ]
@ -258,6 +278,26 @@ steps:
event:
- tag
- name: ghcr-publish
image: plugins/docker
settings:
registry: ghcr.io
dockerfile: package/Dockerfile
username: "k3s-io"
password:
from_secret: github_token
repo: "ghcr.io/k3s-io/k3s"
build_args_from_env:
- DRONE_TAG
when:
instance:
- drone-publish.k3s.io
ref:
- refs/head/master
- refs/tags/*
event:
- tag
- name: test
image: rancher/dapper:v0.6.0
secrets: [ AWS_SECRET_ACCESS_KEY-k3s-ci-uploader, AWS_ACCESS_KEY_ID-k3s-ci-uploader ]
@ -374,6 +414,26 @@ steps:
event:
- tag
- name: ghcr-publish
image: plugins/docker:linux-arm
settings:
registry: ghcr.io
dockerfile: package/Dockerfile
username: "k3s-io"
password:
from_secret: github_token
repo: "ghcr.io/k3s-io/k3s"
build_args_from_env:
- DRONE_TAG
when:
instance:
- drone-publish.k3s.io
ref:
- refs/head/master
- refs/tags/*
event:
- tag
- name: test
# Refer to comment for arm/build.
image: rancher/dapper:v0.5.0