Deploy Docker images with tags

This commit is contained in:
Kitaiti Makoto 2022-01-04 19:07:47 +09:00
parent 5b7e8a69a5
commit b97c9d2165
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,36 @@
name: cd
on:
push:
tags:
- *.*.*
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
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
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: plumeorg/plume:v${{ steps.meta.outputs.tags }}