Skip to content

Commit 6dc7348

Browse files
author
sk33z3r
committed
chore[github]: separate pr and release actions
1 parent 9805780 commit 6dc7348

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ on:
55
branches: [ "main" ]
66
# Publish semver tags as releases.
77
tags: [ 'v*.*.*' ]
8-
pull_request:
9-
branches: [ "main" ]
108

119
env:
1210
HUB_TAG: ${{ github.ref_name }}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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 }}

0 commit comments

Comments
 (0)