File tree 1 file changed +16
-18
lines changed
1 file changed +16
-18
lines changed Original file line number Diff line number Diff line change 1
- name : Publish Docker image
1
+ name : ci
2
2
3
3
on :
4
- release :
5
- types : [published]
4
+ push :
5
+ branches :
6
+ - " main"
6
7
7
8
jobs :
8
- push_to_registry :
9
- name : Push Docker image to Docker Hub
9
+ docker :
10
10
runs-on : ubuntu-latest
11
11
steps :
12
- - name : Check out the repo
13
- uses : actions/checkout@v4
14
-
15
- - name : Log in to Docker Hub
16
- uses : docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
12
+ - name : Set up QEMU
13
+ uses : docker/setup-qemu-action@v3
14
+ - name : Set up Docker Buildx
15
+ uses : docker/setup-buildx-action@v3
16
+ - name : Login to Docker Hub
17
+ uses : docker/login-action@v3
17
18
with :
18
- username : ${{ secrets.DOCKER_USERNAME }}
19
- password : ${{ secrets.DOCKER_PASSWORD }}
20
-
21
- - name : Build and push Docker image
22
- uses : docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
19
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
20
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
21
+ - name : Build and push
22
+ uses : docker/build-push-action@v5
23
23
with :
24
- context : .
25
- file : ./Dockerfile
26
24
push : true
27
- tags : ${{ github.event.release.tag_name }}
25
+ tags : kcoderhtml/streaming-web: ${{ github.event.release.tag_name }}
You can’t perform that action at this time.
0 commit comments