Skip to content

release: v0.2.0 (#62) #8

release: v0.2.0 (#62)

release: v0.2.0 (#62) #8

Workflow file for this run

name: Release
on:
workflow_dispatch:
push:
tags:
- "v*"
jobs:
docker:
strategy:
matrix:
dockerfile: ["server", "worker-cut", "worker-merge"]
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
lychee0/finalrip-${{ matrix.dockerfile }}
tags: |
latest
${{ github.ref_name }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./deploy/${{ matrix.dockerfile }}.dockerfile
platforms: linux/amd64, linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
github:
needs: [docker]
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Release
uses: softprops/action-gh-release@v2