Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ARM
k8s
Kured
Commits
fb8677e7
Commit
fb8677e7
authored
Oct 08, 2021
by
Daniel Holbach
Browse files
Move to GHCR as a backup for Docker Hub
parent
bdd16d4e
Changes
3
Hide whitespace changes
Inline
Side-by-side
.github/workflows/on-main-push.yaml
View file @
fb8677e7
...
...
@@ -29,6 +29,13 @@ jobs:
username
:
${{ secrets.DOCKERHUB_USERNAME_WEAVEWORKSKUREDCI }}
password
:
${{ secrets.DOCKERHUB_TOKEN_WEAVEWORKSKUREDCI }}
-
name
:
Login to ghcr.io
uses
:
docker/login-action@v1
with
:
registry
:
ghcr.io
username
:
${{ github.actor }}
password
:
${{ secrets.KURED_WEAVE_GHCR_BOT_TOKEN }}
-
name
:
Build image
run
:
|
make DH_ORG="${{ github.repository_owner }}" image
...
...
.github/workflows/on-tag.yaml
View file @
fb8677e7
...
...
@@ -37,6 +37,13 @@ jobs:
username
:
${{ secrets.DOCKERHUB_USERNAME_WEAVEWORKSKUREDCI }}
password
:
${{ secrets.DOCKERHUB_TOKEN_WEAVEWORKSKUREDCI }}
-
name
:
Login to ghcr.io
uses
:
docker/login-action@v1
with
:
registry
:
ghcr.io
username
:
${{ github.actor }}
password
:
${{ secrets.KURED_WEAVE_GHCR_BOT_TOKEN }}
-
name
:
Publish image
run
:
|
make DH_ORG="${{ github.repository_owner }}" VERSION="${{ steps.tags.outputs.version }}" publish-image
Makefile
View file @
fb8677e7
...
...
@@ -24,12 +24,14 @@ build/.image.done: cmd/kured/Dockerfile cmd/kured/kured
cp
$^
build
$(SUDO)
docker build
-t
docker.io/
$(DH_ORG)
/kured
-f
build/Dockerfile ./build
$(SUDO)
docker tag docker.io/
$(DH_ORG)
/kured docker.io/
$(DH_ORG)
/kured:
$(VERSION)
$(SUDO)
docker tag docker.io/
$(DH_ORG)
/kured ghcr.io/
$(DH_ORG)
/kured:
$(VERSION)
touch
$@
image
:
build/.image.done
publish-image
:
image
$(SUDO)
docker push docker.io/
$(DH_ORG)
/kured:
$(VERSION)
$(SUDO)
docker push ghcr.io/
$(DH_ORG)
/kured:
$(VERSION)
minikube-publish
:
image
$(SUDO)
docker save docker.io/
$(DH_ORG)
/kured |
(
eval
$$
(
minikube docker-env
)
&&
docker load
)
...
...
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