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
8324b09b
Unverified
Commit
8324b09b
authored
Nov 29, 2021
by
Daniel Holbach
Committed by
GitHub
Nov 29, 2021
Browse files
Merge pull request #446 from weaveworks/revert-445-revert-439-feature/quay-registry
Add ghcr.io as second registry
parents
bdd16d4e
fb8677e7
Changes
3
Hide whitespace changes
Inline
Side-by-side
.github/workflows/on-main-push.yaml
View file @
8324b09b
...
...
@@ -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 @
8324b09b
...
...
@@ -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 @
8324b09b
...
...
@@ -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