Skip to content

Removed voice & banner instructions from last step and added ssmlAnno… #213

Removed voice & banner instructions from last step and added ssmlAnno…

Removed voice & banner instructions from last step and added ssmlAnno… #213

Workflow file for this run

name: Publish Docker image
on:
push:
branches:
- 'master'
tags:
- '*'
paths-ignore:
- '.gitignore'
- '**.md'
- 'test/'
jobs:
build_and_publish:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'valhalla' }}
steps:
- name: Check out the repo
uses: actions/checkout@v3
with:
submodules: 'recursive'
fetch-depth: 0
- name: Extract tag name
if: startsWith(github.ref, 'refs/tags/')
run: echo "##[set-output name=tag;]${GITHUB_REF#refs/tags/}"
id: extract_tag
- name: Log in to GitHub Docker Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build tag image
if: startsWith(github.ref, 'refs/tags/')
run: |
sudo apt update --yes
sudo apt install --yes --quiet binfmt-support qemu-user-static qemu-system
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker buildx create --name mybuilder
docker buildx use mybuilder
docker buildx inspect --bootstrap
docker buildx build --push --platform linux/amd64,linux/arm64 --tag ghcr.io/valhalla/valhalla:${{ steps.extract_tag.outputs.tag }} .
- name: Build latest image
if: github.ref == 'refs/heads/master'
run: |
sudo apt update --yes
sudo apt install --yes --quiet binfmt-support qemu-user-static qemu-system
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker buildx create --name mybuilder
docker buildx use mybuilder
docker buildx inspect --bootstrap
docker buildx build --push --platform linux/amd64,linux/arm64 --tag ghcr.io/valhalla/valhalla:latest .