feature: push to quay.io

This commit is contained in:
chechia 2022-12-20 17:53:19 +08:00
parent 2b20ff4da9
commit 12c7f6585a
No known key found for this signature in database
GPG Key ID: BF5216A9961E11A6

View File

@ -25,6 +25,7 @@ jobs:
# list of Docker images to use as base name for tags # list of Docker images to use as base name for tags
images: | images: |
yoanlin/bbgo yoanlin/bbgo
quay.io/yoanlin/bbgo
# generate Docker tags based on the following events/attributes # generate Docker tags based on the following events/attributes
tags: | tags: |
type=schedule type=schedule
@ -43,6 +44,12 @@ jobs:
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to Quay Container Registry
uses: docker/login-action@v2
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_TOKEN }}
- name: Build and push - name: Build and push
id: docker_build id: docker_build
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2