https://github.com/go-training/docker-in-github-actions-vs-drone
docker build in GitHub Actions vs Drone CI/CD
https://github.com/go-training/docker-in-github-actions-vs-drone
drone-ci github-actions
Last synced: 29 days ago
JSON representation
docker build in GitHub Actions vs Drone CI/CD
- Host: GitHub
- URL: https://github.com/go-training/docker-in-github-actions-vs-drone
- Owner: go-training
- Created: 2020-03-29T02:59:58.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-29T10:52:07.000Z (over 5 years ago)
- Last Synced: 2025-04-09T10:12:18.561Z (6 months ago)
- Topics: drone-ci, github-actions
- Language: Dockerfile
- Size: 11.7 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-in-github-actions-vs-drone
docker build in GitHub Actions vs Drone CI/CD
[](https://cloud.drone.io/go-training/docker-in-github-actions-vs-drone)
## GitHub Actions
```yml
- name: build and push image
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: appleboy/gin-docker-demo
dockerfile: Dockerfile
always_pull: true
tags: latest
```## Drone CI
```yml
- name: publish
pull: always
image: plugins/docker:linux-amd64
settings:
auto_tag: true
cache_from: appleboy/gin-docker-demo
daemon_off: false
dockerfile: Dockerfile
password:
from_secret: docker_password
repo: appleboy/gin-docker-demo
username:
from_secret: docker_username
when:
event:
exclude:
- pull_request
```## Summary
build time
* GitHub Actions: 1m10s ([logs](https://github.com/go-training/docker-in-github-actions-vs-drone/runs/542876427?check_suite_focus=true)) I make new [PR](https://github.com/docker/github-actions/pull/17) to improve speed.
* Drone CI: **17s** ([logs](https://cloud.drone.io/go-training/docker-in-github-actions-vs-drone/14/1/2))