At Pindo, we recently automated all our deployment processes by setting up continuous delivery pipelines for our repositories. This setup helped us...
For further actions, you may consider blocking this person and/or reporting abuse
I' m getting an error in the deploy stage, this is the output:
does anybody knows what' s wrong?
Hi Christian, can you check if you have docker installed on your production server?
Hi Remy, thanks for answering I already solved, the issue was that I installed docker using snap, and reading on the web I realized that snap installs everything under /snap and that is not part of the environment variable PATH.
it was a little tricky because if I ssh from my local computer to the server and then run docker it works, but it didn't work from the yml file.
so instead of running docker I had to run /snap/bin/docker
or create a symlink:
Thank for this post bro it's very helpful!
I am getting
name unknown: The expected resource was not found.
while publishing to the Github Package Registry.LOG
Successfully built 831f744bab47
Successfully tagged docker.pkg.github.com/repo_name/image_name:latest
The push refers to repository [docker.pkg.github.com/repo_name/image_name]
d4c3bfb3f5d5: Preparing
3810cc0c140f: Preparing
3e207b409db3: Preparing
** name unknown: The expected resource was not found. **
DEPLOY FILE
Not sure what the unknown thing is.
Hi @athmakuri ,
You're not specifying your Github username, repository name, and the Docker image name
github_username/repo_name/image_name
. For example, my Github username iskenessajr
and my repository name and docker image are both calledreact-with-actions
,kenessajr/react-with-actions/react-with-actions
. What you have to do is editing and specifying correctly your variables.Hi Remy, Thanks for your response. Here is the actual name that I have,
susheelv/arc_recipe/recipecreator
for which I am getting the error.Deploy File
Error
Nevermind. I had to use the organization's name instead of my personal username to create a package.
Hey there, it's a nice deploy.yml file! One suggestion (from docker) is to use:
echo "$GITHUB_TOKEN" | docker login docker.pkg.github.com -u $GITHUB_USERNAME --password-stdin
instead of:
docker login docker.pkg.github.com -u $GITHUB_USERNAME -p $GITHUB_TOKEN
for the security reasons.
Thanks for the article. I am having an issue here. Workflow is passed and done successfully but I have noticed the changes are not being reflected in digital ocean. Is this something related to caching of the docker package? Or are there any chances that docker package will not be updated with the latest code sometimes? Any dependencies related
latest
tag?EDIT: have to use docker pull before running the docker.
Hello Sady, I just realized that I forget to add
docker pull
for pulling new images.question: Wouldn't running Login + Pull first be a better choice to limit down time? And to prevent failure?
docker login docker.pkg.github.com -u $GITHUB_USERNAME -p $GITHUB_TOKEN
docker pull docker.pkg.github.com/my_github_username/my_repository_name/my_image_name:latest
docker stop $(docker ps -a -q)
docker run -dit -p 80:80 docker.pkg.github.com/my_github_username/my_repository_name/my_image_name:latest
Many thanks! very helpfull. Everything went well until the "Deploy package to digitalocean" step in the build when I push my branch to Github. It says "Password change required but no TTY available.". I've tried resetting the root password of the droplet, but no success. Any idea?
Great article thanks for this. Could you also help with adding a certificate to our react app & use port https with it.
Yes definitely. I will try to update the tutorial ASAP.
Remy Any update on making the website https
Use this in the Dockerfile
instead of specifying the node version
if you have error
Next, let's add our GITHUB_USERNAME to the secrets. -
gives
Failed to add secret. Name is invalid
Any token that starts with GITHUB is reserved by github and included in your build process already.
Remy, this was very helpful. Thank you! Thank you! Thank you!
Hey
Thanks for this nice article. I have a question though. How can I do it without docker ?
Thanks