Skip to content

Commit 61b6124

Browse files
committed
feat(ci): add image build
1 parent f37e9b4 commit 61b6124

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
3+
name: "Container: Image Build"
4+
on:
5+
workflow_dispatch:
6+
7+
jobs:
8+
publish-images:
9+
name: Publish Image
10+
permissions:
11+
contents: write
12+
packages: write
13+
runs-on: ubuntu-22.04
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v5
18+
with:
19+
fetch-depth: 0
20+
21+
- name: Log into registry ghcr.io
22+
uses: docker/[email protected]
23+
with:
24+
registry: ghcr.io
25+
username: ${{ github.actor }}
26+
password: ${{ secrets.GITHUB_TOKEN }}
27+
28+
- name: Set up QEMU
29+
uses: docker/[email protected]
30+
31+
- name: Set up Docker Buildx
32+
uses: docker/[email protected]
33+
34+
- name: Build images
35+
run: |
36+
make docker-build-all IMAGE=ghcr.io/${{ github.repository }}
37+
38+
- name: Push images
39+
run: |
40+
make docker-push-all IMAGE=ghcr.io/${{ github.repository }}

0 commit comments

Comments
 (0)