@@ -6,6 +6,12 @@ if [ "$#" != 1 ] ; then
6
6
fi
7
7
VERSION=" ${1} "
8
8
9
+ read -p ' >> What is your github username? ' GITHUB_USERNAME
10
+ if [ -z " $GITHUB_USERNAME " ] ; then
11
+ echo " Please provide your github username."
12
+ exit -1
13
+ fi
14
+
9
15
read -p ' >> Tag the repo (select N if you are still testing the builds)? [y|N] ' resp
10
16
if [ " $resp " == " y" ] ; then
11
17
cd api
22
28
23
29
read -p ' >> Build the containers and push to docker hub? [y|N] ' resp
24
30
if [ " $resp " == " y" ] ; then
25
- docker login
31
+
32
+ echo " "
33
+ echo " Logging in to Github Container Registry"
34
+ echo " Provide a personal access token with the appropriate permissions"
35
+ echo " "
36
+ docker login ghcr.io --username GITHUB_USERNAME
26
37
27
38
docker buildx build --push --rm --platform=linux/amd64,linux/arm64 \
28
- -t arkisto/ workspace-api:latest \
29
- -t arkisto/ workspace-api:${VERSION} \
39
+ -t ghcr.io/coedl/nyingarn- workspace-api:latest \
40
+ -t ghcr.io/coedl/nyingarn- workspace-api:${VERSION} \
30
41
-f Dockerfile.api-build .
31
42
32
43
docker buildx build --push --rm --platform=linux/amd64,linux/arm64 \
33
- -t arkisto/ workspace-task-runner:latest \
34
- -t arkisto/ workspace-task-runner:${VERSION} \
44
+ -t ghcr.io/coedl/nyingarn- workspace-task-runner:latest \
45
+ -t ghcr.io/coedl/nyingarn- workspace-task-runner:${VERSION} \
35
46
-f Dockerfile.tasks-build .
36
47
37
48
docker run -it --rm \
38
49
-v $PWD /ui:/srv/ui \
39
50
-v ui_node_modules:/srv/ui/node_modules \
40
51
-w /srv/ui node:14-buster bash -l -c " npm run build"
41
52
docker buildx build --push --rm --platform linux/amd64,linux/arm64 \
42
- -t arkisto/ workspace-ui:latest \
43
- -t arkisto/ workspace-ui:${VERSION} \
53
+ -t ghcr.io/coedl/nyingarn- workspace-ui:latest \
54
+ -t ghcr.io/coedl/nyingarn- workspace-ui:${VERSION} \
44
55
-f Dockerfile.ui-build .
45
56
46
57
docker buildx build --push --rm --platform linux/amd64,linux/arm64 \
47
- -t arkisto/ workspace-tusd:latest \
48
- -t arkisto/ workspace-tusd:${VERSION} \
58
+ -t ghcr.io/coedl/nyingarn- workspace-tusd:latest \
59
+ -t ghcr.io/coedl/nyingarn- workspace-tusd:${VERSION} \
49
60
-f Dockerfile.tus-build .
50
61
fi
0 commit comments