This repository has been archived by the owner on Sep 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.github/workflows: Add automated push to Docker Hub
Signed-off-by: Timo Reichl <[email protected]>
- Loading branch information
Timo Reichl
committed
Jun 15, 2022
1 parent
385ddc3
commit f9dd778
Showing
3 changed files
with
57 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
src_image="${1}" | ||
dst_image_ghcr="${2}" | ||
dst_image_docker_hub="${3}" | ||
|
||
do_retag() { | ||
local dst_image="${1}" | ||
|
||
docker tag ${src_image} ${dst_image} | ||
docker push ${dst_image} | ||
} | ||
|
||
do_retag ${dst_image_ghcr} | ||
do_retag ${dst_image_docker_hub} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters