Open github-learning-lab[bot] opened 3 years ago
docker login docker.pkg.github.com -u USERNAME -p TOKEN
USERNAME
with your GitHub usernameTOKEN
with the Personal Access Token you just createdIf everything went well, 🤞 you should see Login Succeeded
in your terminal.
pull
command from the package instructions into your terminal. It should look something like this:
docker pull docker.pkg.github.com/taketoshi425/js-build/tic-tac-toe:f29
You should see output indicating that the pull was successful, like Status: Downloaded newer image for docker.
Docker image ls
docker run -d -it --rm -p 8080:80 --name ttt <YOUR_IMAGE_NAME:TAG>
YOUR_IMAGE_NAME
with your image name under the REPOSITORY
columnTAG
with the image tag under the TAG
column
If everything went well, you will see hash value as output on your screen.
Congratulations @taketoshi425, you did it! You wrote a workflow that sends a code through a CI/CD pipeline and leaves you will a fully tested, fully deployable artifact.
You did so using GitHub Actions and GitHub Packages!
This concludes our course. Close this issue when you are done. You are free to keep this repository for future reference as you go out and build cool things on the internet!
We hope this course helped you feel more comfortable using GitHub. Remember: You’re always welcome to repeat course topics if you’d like additional practice. If you’re ready to build on your new skills, here are some ideas.
To find projects to contribute to through trending topics and curated collections, check out GitHub Explore.
Using your new Docker Image package
The easiest way to use your Docker Image package is to click the package name from the package tab.
That will bring you to a screen like containing instructions.
Before we can use this Docker image, you will need to generate a personal access token that contains the following permissions:
We will use this token to log in to Docker, and authenticate with the package.