Skip to content

Commit d32def5

Browse files
committed
ci: build patched image to ghcr on fix branch
1 parent 6692b38 commit d32def5

1 file changed

Lines changed: 53 additions & 0 deletions

File tree

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Build patched image (ghcr)
2+
3+
on:
4+
push:
5+
branches:
6+
- fix/reply-quote-contextinfo
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
packages: write
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v5
18+
with:
19+
submodules: recursive
20+
21+
- name: Docker meta
22+
id: meta
23+
uses: docker/metadata-action@v5
24+
with:
25+
images: ghcr.io/${{ github.repository_owner }}/evolution-api
26+
tags: |
27+
type=raw,value=fix-reply-quote
28+
type=sha,prefix=fix-,format=short
29+
30+
- name: Set up Docker Buildx
31+
uses: docker/setup-buildx-action@v3
32+
33+
- name: Login to GHCR
34+
uses: docker/login-action@v3
35+
with:
36+
registry: ghcr.io
37+
username: ${{ github.actor }}
38+
password: ${{ secrets.GITHUB_TOKEN }}
39+
40+
- name: Build and push
41+
id: docker_build
42+
uses: docker/build-push-action@v6
43+
with:
44+
context: .
45+
platforms: linux/amd64
46+
push: true
47+
tags: ${{ steps.meta.outputs.tags }}
48+
labels: ${{ steps.meta.outputs.labels }}
49+
cache-from: type=gha
50+
cache-to: type=gha,mode=max
51+
52+
- name: Image digest
53+
run: echo "${{ steps.docker_build.outputs.digest }}"

0 commit comments

Comments
 (0)