File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Docker Image CI
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+ pull_request :
7+ branches : [ "main" ]
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - uses : actions/checkout@v4
15+
16+ - name : Set up Docker Buildx
17+ uses : docker/setup-buildx-action@v3
18+
19+ - name : Log in to Docker Hub
20+ uses : docker/login-action@v3
21+ with :
22+ username : ${{ secrets.DOCKERHUB_USERNAME }}
23+ password : ${{ secrets.DOCKERHUB_TOKEN }}
24+
25+ - name : Build and push Docker image
26+ uses : docker/build-push-action@v5
27+ with :
28+ context : .
29+ file : ./Dockerfile
30+ push : ${{ github.event_name == 'push' }}
31+ tags : ${{ secrets.DOCKERHUB_USERNAME }}/fluxer-bot:latest
32+ cache-from : type=registry,ref=${{ secrets.DOCKERHUB_USERNAME }}/fluxer-bot:buildcache
33+ cache-to : type=registry,ref=${{ secrets.DOCKERHUB_USERNAME }}/fluxer-bot:buildcache,mode=max
You can’t perform that action at this time.
0 commit comments