Skip to content

Merge pull request #65 from mogeko/dev #9

Merge pull request #65 from mogeko/dev

Merge pull request #65 from mogeko/dev #9

Workflow file for this run

name: Release
on:
push:
branches: ["master"]
tags: ["*"]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/[email protected]
- name: Log in to Docker Hub
uses: redhat-actions/[email protected]
with:
registry: docker.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Log in to the GitHub Container Registry
uses: redhat-actions/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/[email protected]
with:
images: |
docker.io/${{ secrets.DOCKER_USERNAME }}/vlmcsd
ghcr.io/${{ github.actor }}/vlmcsd
tags: |
type=edge
type=sha
- name: Setup QEMU
uses: docker/[email protected]
with:
platforms: amd64,arm64
- name: Build container with rootless by Buildah
uses: redhat-actions/[email protected]
id: build-image
with:
platforms: linux/amd64,linux/arm64
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.meta.outputs.tags }}
containerfiles: ./Dockerfile
build-args: |
VLMCSD_VERSION=${{ github.ref_name }}
layers: false
- name: Push to Container registry
uses: redhat-actions/[email protected]
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
man-page:
runs-on: ubuntu-latest
if: ${{ github.ref_name == 'master' }}
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
concurrency:
group: "pages"
cancel-in-progress: false
permissions:
contents: read
pages: write
id-token: write
steps:
- uses: actions/[email protected]
- run: sudo apt-get update && sudo apt-get -y install groff
- run: make -C ./vlmcsd-* pdfdocs htmldocs
- uses: docker://pandoc/core:3.5.0
with:
args: --from=markdown --output=index.html README.md
- run: |
install -d ./_site && install -t ./_site \
./vlmcsd-*/man/vlmcs*.{pdf,html} ./LICENSE ./index.html
ls -l ./_site
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
path: "./_site"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/[email protected]