Skip to content

v0.23.0-rc11

v0.23.0-rc11 #33

Workflow file for this run

name: Deploy to gitea
on:
workflow_dispatch:
release:
types: [published]
jobs:
build:
runs-on: self-hosted
env:
DOCKER_FILE: Dockerfile
VERSION: '0.23.0-rc11'
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set up QEMU
run: |
sudo apt-get update
sudo apt-get install -y binfmt-support
curl -L -o /tmp/qemu.sh 'https://raw.githubusercontent.com/qemu/qemu/master/scripts/qemu-binfmt-conf.sh'
chmod +x /tmp/qemu.sh
sudo /tmp/qemu.sh --debian
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Log into gitea
uses: docker/[email protected]
with:
registry: git.local.puvvadi.net
username: ${{ secrets.GITEA_USER }}
password: ${{ secrets.GITEA_TOKEN }}
- name: Build and push to registry
uses: docker/[email protected]
with:
context: .
file: ${{ env.DOCKER_FILE }}
platforms: linux/amd64,linux/arm/v7,linux/arm64
push: true
build-args: |
VERSION=${{ env.VERSION }}
tags: |
git.local.puvvadi.net/kd/pocketbase:${{ env.VERSION }}
cache-from: type=registry,ref=${{ github.repository }}:latest
cache-to: type=inline