Raise a RpcError rather than a ValueError (#54) #31
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Docker container on tag | |
on: | |
push: | |
tags: | |
- v[0-9]+.[0-9]+.[0-9]+ | |
- v[0-9]+.[0-9]+.[0-9]+-* | |
jobs: | |
build: | |
name: Build image | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout project | |
uses: actions/checkout@v2 | |
- name: Set env variables | |
run: | | |
echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV | |
REPO_OWNER=${{ github.repository_owner }} | |
echo "IMAGE_NAME=${REPO_OWNER,,}/${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v1 | |
- name: Setup Docker buildx action | |
uses: docker/setup-buildx-action@v1 | |
- name: Run Docker buildx | |
run: | | |
docker buildx build \ | |
--platform linux/amd64,linux/arm64 \ | |
--tag ghcr.io/$IMAGE_NAME:$TAG \ | |
--output "type=registry" ./ |