Skip to content

Commit 42835a8

Browse files
committed
Move deployment to quay
1 parent c1dfc02 commit 42835a8

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

.github/workflows/publish.yml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,26 @@ on:
66
- main
77

88
jobs:
9-
dockerhub-release:
9+
build-and-push:
1010
runs-on: ubuntu-latest
11+
1112
steps:
12-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v3
1314

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
1618
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
1923
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
2226
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 }}

0 commit comments

Comments
 (0)