You can push your Docker image to larkin.sh private registry.
98 |
99 |
100 | # 1. Retrieve the login command to use to authenticate your Docker client to your
101 | registry. Use curl request:
102 |
103 |
104 | $(curl -H "X-TOKEN: {user.api_token}" {process.env.API_URL}/get_docker_login)
105 |
106 |
107 | # 2. Build your Docker image using the following command. You can skip this step if
108 | your image is already built:
109 |
110 | docker build -t myapp .
111 |
112 | # 3. After the build completes, tag your image so you can push the image to this
113 | repository:
114 |
115 | docker tag myapp:latest registry.larkin.sh/{user.id}/myapp
116 |
117 | # 4. Run the following command to push this image to your newly created larkin.sh
118 | repository:
119 |
120 | docker push registry.larkin.sh/{user.id}/myapp:latest
121 |
122 |