File tree 2 files changed +43
-9
lines changed
2 files changed +43
-9
lines changed Original file line number Diff line number Diff line change
1
+ name : Create and publish a package
2
+ on :
3
+ pull_request :
4
+ branches :
5
+ - main
6
+ jobs :
7
+ build-and-pPush-image :
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - name : Checkout
11
+ uses : actions/checkout@v2
12
+
13
+ - name : Set up Docker Buildx
14
+ uses : docker/setup-buildx-action@v1
15
+
16
+ - name : Login to DockerHub
17
+ uses : docker/login-action@v1
18
+ with :
19
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
20
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
21
+
22
+ - name : Build and push
23
+ id : docker_build
24
+ uses : docker/build-push-action@v2
25
+ with :
26
+ push : true
27
+ tags : seungkyua/tks-info:${{ github.head_ref }}
Original file line number Diff line number Diff line change 3
3
push :
4
4
branches :
5
5
- main
6
- release :
7
- types : [published]
6
+
8
7
jobs :
9
8
build-and-push-image :
10
9
runs-on : ubuntu-latest
11
10
steps :
12
11
- name : Checkout
13
12
uses : actions/checkout@v2
14
- - name : Build container image
15
- uses : docker/build-push-action@v1
13
+
14
+ - name : Set up Docker Buildx
15
+ uses : docker/setup-buildx-action@v1
16
+
17
+ - name : Login to DockerHub
18
+ uses : docker/login-action@v1
16
19
with :
17
- username : ${{ github.actor }}
18
- password : ${{ secrets.GITHUB_TOKEN }}
19
- registry : docker.pkg.github.com
20
- repository : ${{ github.repository }}/tks-info
21
- tag_with_ref : true
20
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
21
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
22
+
23
+ - name : Build and push
24
+ id : docker_build
25
+ uses : docker/build-push-action@v2
26
+ with :
27
+ push : true
28
+ tags : seungkyua/tks-info:latest
You can’t perform that action at this time.
0 commit comments