diff --git a/.github/workflows/deploy-docker.yaml b/.github/workflows/deploy-docker-latest.yaml similarity index 100% rename from .github/workflows/deploy-docker.yaml rename to .github/workflows/deploy-docker-latest.yaml diff --git a/.github/workflows/deploy-docker-tag.yaml b/.github/workflows/deploy-docker-tag.yaml new file mode 100644 index 00000000..2be42eab --- /dev/null +++ b/.github/workflows/deploy-docker-tag.yaml @@ -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 }}