0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

chore: publish to DockerHub (#1765)

* chore: publish to DockerHub

* chore: remove testing code
This commit is contained in:
Gao Sun 2022-08-11 20:58:53 +08:00 committed by GitHub
parent 8870f9cef0
commit 3c95f20883
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,9 +10,6 @@ on:
concurrency:
group: dockerize-${{ github.ref }}
env:
IMAGE: ghcr.io/logto-io/logto
jobs:
dockerize:
runs-on: ubuntu-latest
@ -27,7 +24,8 @@ jobs:
uses: docker/metadata-action@v4
with:
images: |
${{ env.IMAGE }}
ghcr.io/logto-io/logto
svhd/logto
# https://github.com/docker/metadata-action#typesemver
tags: |
type=semver,pattern={{version}}
@ -39,6 +37,12 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with: