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 : ci
2+
3+ on :
4+ push :
5+ branches :
6+ - " main"
7+
8+ jobs :
9+ docker :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Checkout
13+ uses : actions/checkout@v4
14+ - name : Log in to Docker Hub
15+ uses : docker/login-action@v3
16+ with :
17+ username : ${{ secrets.DOCKERHUB_USERNAME }}
18+ password : ${{ secrets.DOCKERHUB_TOKEN }}
19+ - name : Set up Docker Buildx
20+ uses : docker/setup-buildx-action@v3
21+ with :
22+ version : " lab:latest"
23+ driver : cloud
24+ endpoint : " craquebullet/bulletcloud"
25+ - name : Build and push
26+ uses : docker/build-push-action@v5
27+ with :
28+ context : .
29+ tags : " IMAGE"
30+ # For pull requests, export results to the build cache.
31+ # Otherwise, push to a registry.
32+ outputs : ${{ github.event_name == 'pull_request' && 'type=cacheonly' || 'type=registry,push=true' }}
33+
You can’t perform that action at this time.
0 commit comments