Skip to content

Commit 83257f0

Browse files
committed
chore: auto-build for main branch
1 parent 5d6b436 commit 83257f0

4 files changed

Lines changed: 56 additions & 126 deletions

File tree

.github/workflows/docker-build-development.yaml

Lines changed: 0 additions & 45 deletions
This file was deleted.

.github/workflows/docker-build-latest.yaml

Lines changed: 0 additions & 45 deletions
This file was deleted.
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: docker-build-main
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- 'main'
8+
release:
9+
types:
10+
- published
11+
pull_request:
12+
branches:
13+
- 'main'
14+
15+
jobs:
16+
docker-build-push:
17+
permissions:
18+
contents: write
19+
packages: write
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
25+
- name: Set up QEMU
26+
uses: docker/setup-qemu-action@v3
27+
28+
- name: Set up Docker Buildx
29+
uses: docker/setup-buildx-action@v3
30+
31+
- name: Log in to the Container registry
32+
uses: docker/login-action@v3
33+
with:
34+
registry: ghcr.io
35+
username: ${{ github.repository_owner }}
36+
password: ${{ secrets.GITHUB_TOKEN }}
37+
38+
- name: Extract metadata (tags, labels) for Docker
39+
id: meta
40+
uses: docker/metadata-action@v5
41+
with:
42+
images: "ghcr.io/${{ github.repository }}"
43+
tags: |
44+
type=semver,pattern={{version}}
45+
type=ref,event=branch
46+
type=ref,event=pr
47+
type=sha
48+
49+
- name: Build and push
50+
uses: docker/build-push-action@v6
51+
with:
52+
context: .
53+
push: true
54+
platforms: linux/amd64,linux/arm64,linux/arm/v7
55+
tags: ${{ steps.meta.outputs.tags }}
56+
labels: ${{ steps.meta.outputs.labels }}

.github/workflows/docker-build-release.yaml

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)