File tree Expand file tree Collapse file tree 2 files changed +28
-2
lines changed
Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 55 branches : [ "main" ]
66 # Publish semver tags as releases.
77 tags : [ 'v*.*.*' ]
8- pull_request :
9- branches : [ "main" ]
108
119env :
1210 HUB_TAG : ${{ github.ref_name }}
Original file line number Diff line number Diff line change 1+ name : Docker Registry CI
2+
3+ on :
4+ pull_request :
5+ branches : [ "main" ]
6+
7+ env :
8+ HUB_TAG : ${{ github.base_ref }}
9+
10+ jobs :
11+ docker :
12+ runs-on : ubuntu-latest
13+ steps :
14+ -
15+ name : Set up Docker Buildx
16+ uses : docker/setup-buildx-action@v1
17+ -
18+ name : Login to DockerHub
19+ uses : docker/login-action@v1
20+ with :
21+ username : ${{ secrets.HUB_USER }}
22+ password : ${{ secrets.HUB_KEY }}
23+ -
24+ name : Build and push
25+ uses : docker/build-push-action@v2
26+ with :
27+ push : true
28+ tags : sk33z3r/loopygen:${{ env.HUB_TAG }}
You can’t perform that action at this time.
0 commit comments