File tree Expand file tree Collapse file tree 1 file changed +17
-10
lines changed Expand file tree Collapse file tree 1 file changed +17
-10
lines changed Original file line number Diff line number Diff line change 6
6
- main
7
7
8
8
jobs :
9
- dockerhub-release :
9
+ build-and-push :
10
10
runs-on : ubuntu-latest
11
+
11
12
steps :
12
- - uses : actions/checkout@v2
13
+ - uses : actions/checkout@v3
13
14
14
- - name : Login to DockerHub
15
- uses : docker/login-action@v1
15
+ - name : Build image
16
+ id : build-image
17
+ uses : redhat-actions/buildah-build@v2
16
18
with :
17
- username : ${{ secrets.DOCKER_HUB_USER }}
18
- password : ${{ secrets.DOCKER_HUB_TOKEN }}
19
+ image : cs-discord-bot
20
+ tags : production ${{ github.sha }}
21
+ containerfiles : |
22
+ ./Dockerfile
19
23
20
- - name : Build and push
21
- uses : docker/build- push-action @v2
24
+ - name : Push to quay.io
25
+ uses : redhat-actions/ push-to-registry @v2
22
26
with :
23
- push : true
24
- tags : toska/cs-discord-bot:latest
27
+ image : ${{ steps.build-image.outputs.image }}
28
+ tags : ${{ steps.build-image.outputs.tags }}
29
+ registry : quay.io/toska
30
+ username : toska+github
31
+ password : ${{ secrets.QUAY_IO_TOKEN }}
You can’t perform that action at this time.
0 commit comments