forked from dullage/flatnotes
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (55 loc) · 1.5 KB
/
build-alpine.yaml
File metadata and controls
62 lines (55 loc) · 1.5 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Build Alpine container
on:
push:
tags:
- 'v*'
paths-ignore:
- '**.md'
- '.github/workflows/**.yaml'
- 'quadlets/**'
- 'helpers/**'
workflow_dispatch:
jobs:
build:
name: Build and push to ghcr
runs-on: ubuntu-latest
environment: production
permissions:
contents: read
actions: write
defaults:
run:
working-directory: .
shell: bash
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
image: ghcr.io/amitie10g/binfmt:latest
platforms: arm64
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver-opts: |
image=ghcr.io/amitie10g/buildkit:master
- name: SHA256 commit (short)
id: commit
uses: prompt/actions-commit-hash@v3
- name: Login to ghcr.io
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GHCR_TOKEN }}
- name: Build and push Alpine Image
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
pull: true
push: true
file: Alpine.Containerfile
tags: |
ghcr.io/rubberverse/flatnotes:alpine
ghcr.io/rubberverse/flatnotes:alpine-${{ steps.commit.outputs.short }}