File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ name : ci
2+
3+ # Trigger event on every push / delete event, no matter the branch
4+ # on: [push, delete]
5+
6+ # Trigger event on every push / delete event, only in master branch
7+ on :
8+ push :
9+ branches :
10+ - " master"
11+ delete :
12+ branches :
13+ - " master"
14+
15+ jobs :
16+ build :
17+ runs-on : ubuntu-latest
18+ steps :
19+ -
20+ name : Checkout
21+ uses : actions/checkout@v3
22+ -
23+ name : Login to Docker Hub
24+ uses : docker/login-action@v2
25+ with :
26+ username : ${{ secrets.DOCKERHUB_USERNAME }}
27+ password : ${{ secrets.DOCKERHUB_TOKEN }}
28+ -
29+ name : Set up Docker Buildx
30+ uses : docker/setup-buildx-action@v2
31+ -
32+ name : Build and push
33+ uses : docker/build-push-action@v4
34+ with :
35+ context : .
36+ file : ./Dockerfile
37+ push : true
38+ tags : ${{ secrets.DOCKERHUB_USERNAME }}/github-backup:latest
39+
40+
You can’t perform that action at this time.
0 commit comments