Skip to content

Commit

Permalink
[#1521] Push images to GHCR
Browse files Browse the repository at this point in the history
  • Loading branch information
lispyclouds committed Mar 15, 2023
1 parent e2f2e9a commit 651139e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .circleci/script/docker.clj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
(or (System/getenv k)
default)))

(def image-name "babashka/babashka")
(def image-name "ghcr.io/babashka/babashka")

(def image-tag (str/trim (slurp "resources/BABASHKA_VERSION")))

Expand Down Expand Up @@ -44,7 +44,7 @@

(defn docker-login
[username password]
(exec ["docker" "login" "-u" username "-p" password]))
(exec ["docker" "login" "ghcr.io" "-u" username "-p" password]))

(defn build-push
[image-tag platform docker-file]
Expand Down Expand Up @@ -92,7 +92,7 @@
(if snapshot?
(println "This is a snapshot version")
(println "This is a non-snapshot version"))
(docker-login (read-env "DOCKERHUB_USER") (read-env "DOCKERHUB_PASS"))
(docker-login (read-env "CONTAINER_REGISTRY_USER") (read-env "BB_GHCR_TOKEN"))
(build-push-images)
(build-push-alpine-images))
(println "Not publishing docker image(s).")))

0 comments on commit 651139e

Please sign in to comment.