A fork of https://github.com/teal-fm/piper
1name: Build
2
3on:
4 push:
5 branches:
6 - main
7 release:
8 types:
9 - published
10
11jobs:
12 build-and-deploy:
13 permissions:
14 contents: read
15 packages: write
16
17 runs-on: ubuntu-latest
18
19 steps:
20 - name: Checkout Repository
21 uses: actions/checkout@v2
22
23 - name: Set up Docker Buildx
24 uses: docker/setup-buildx-action@v3
25
26 - name: Login to GitHub Container Registry
27 uses: docker/login-action@v1
28 with:
29 registry: ghcr.io
30 username: ${{ github.actor }}
31 password: ${{ secrets.GITHUB_TOKEN }}
32
33 - name: Docker Buildx
34 run: |
35 docker buildx build \
36 --platform linux/amd64,linux/arm64 \
37 --tag ghcr.io/${{ github.repository_owner }}/piper:${GITHUB_REF_NAME#refs/tags/v} \
38 --push .