Merge pull request 'Deploy tags' (#983) from deploy-tags into main

Reviewed-on: https://git.joinplu.me/Plume/Plume/pulls/983
This commit is contained in:
KitaitiMakoto 2022-01-04 09:42:19 +00:00
commit 9601e99e33

View file

@ -4,6 +4,8 @@ on:
push:
branches:
- 'main'
tags:
- '*'
jobs:
docker:
@ -15,6 +17,12 @@ jobs:
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: plumeorg/plume
-
name: Login to DockerHub
uses: docker/login-action@v1
@ -27,4 +35,4 @@ jobs:
uses: docker/build-push-action@v2
with:
push: true
tags: plumeorg/plume:latest
tags: ${{ steps.meta.outputs.tags == 'master' && 'latest' || steps.meta.outputs.tags }}