-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (42 loc) · 1.33 KB
/
tea.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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