Skip to content

Commit dbb4c09

Browse files
committed
v1.0
0 parents  commit dbb4c09

23 files changed

+14245
-0
lines changed

.github/workflows/dockerimage.yml

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: docker
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
packages: write
13+
steps:
14+
-
15+
name: Checkout
16+
uses: actions/checkout@v4
17+
-
18+
name: Docker meta
19+
id: meta
20+
uses: docker/metadata-action@v5
21+
with:
22+
# list of Docker images to use as base name for tags
23+
images: |
24+
${{ github.repository }}
25+
ghcr.io/${{ github.repository }}
26+
-
27+
name: Set up QEMU
28+
uses: docker/setup-qemu-action@v3
29+
-
30+
name: Set up Docker Buildx
31+
uses: docker/setup-buildx-action@v3
32+
-
33+
name: Login to Docker Hub
34+
if: github.event_name != 'pull_request'
35+
uses: docker/login-action@v3
36+
with:
37+
username: ${{ github.actor }}
38+
password: ${{ secrets.DOCKERHUB_TOKEN }}
39+
-
40+
name: Login to Github Container Registry
41+
if: github.event_name != 'pull_request'
42+
uses: docker/login-action@v3
43+
with:
44+
registry: ghcr.io
45+
username: ${{ github.actor }}
46+
password: ${{ secrets.GITHUB_TOKEN }}
47+
-
48+
name: Build and push
49+
uses: docker/build-push-action@v6
50+
with:
51+
context: .
52+
platforms: linux/amd64,linux/arm64
53+
push: ${{ github.event_name != 'pull_request' }}
54+
tags: ${{ steps.meta.outputs.tags }}
55+
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)