Using Docker Containers with GitHub Actions
ฝัง
- เผยแพร่เมื่อ 16 ก.ค. 2024
- In this 10 minute video, I'll show you two different ways I've used Docker containers inside of GitHub actions. This allows you to create more complex workflows, without having to specify individual steps. You can use ready-made images from the Docker Hub, or reuse tailor-made images that you've already created for your applications!
You'll learn:
- What GitHub actions do, in brief
- How to use a container for an entire workflow job
- How to run a container in an individual job step
- 0:00 Let's get started
- 0:41 Using a container for a whole job
- 4:58 Running containers in a single step
- 9:15 Wrapping up
Follow me on Twitter! / aschmelyun
Join my newsletter, where I send out new information twice each month in the PHP, JavaScript, and Docker worlds: aschmelyun.substack.com - วิทยาศาสตร์และเทคโนโลยี
Here's the two repos mentioned in the video:
github.com/aschmelyun/github-actions-docker-phpunit
github.com/aschmelyun/github-actions-docker-compile
Hope you like the video!
Your a rockstar! This was so good. I now understand it
this is the best gh actions tutorial I've ever seen. really well explained
Great video! Helpful and straight to the content! Thanks a lot!
Thanks! Really helped and works as expected.
Nicely explained. Thanks ❤
Awesome example!
спасибо. Ваш вариант запуска контейнера сработал
thank you
Hi Andrew, how do I run yarn test and build inside a container
In the first option you run the job inside a container, so that means all the steps including the checkout is performed inside the container. why then do you need to use the volume option to access your repository?
I repeatedly get access errors. this method does not work for me
How do u actually run the docker container from github actions?
Hi Andrew, I am using docker for the local laravel development in linux and I get permission issue while running make command like make:controller and I can not edit that file in my local machine because of permission issue, I have to change permission every time when I create file using artisan make command. Can you advice?
@Ben Abbott I just noticed your comment, Thanks, ben I will look into it. I appreciate it. Thanks.
You speak very fastly. It's hard to understand.