Skip to content

Commit ccf5383

Browse files
committed
chore(ci): add docker build GitHub Actions
1 parent 7ab15c4 commit ccf5383

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/docker.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Publish Docker image
2+
on:
3+
push:
4+
tags:
5+
- 'docker-v*.*.*'
6+
jobs:
7+
push_to_registry:
8+
name: Push Docker image to GitHub Packages
9+
runs-on: ubuntu-latest
10+
steps:
11+
-
12+
name: Check out the repo
13+
uses: actions/checkout@v6
14+
-
15+
name: Docker meta
16+
id: docker_meta
17+
uses: docker/metadata-action@v5
18+
with:
19+
images: ghcr.io/yoshinorin/docker-buzzard
20+
-
21+
name: Login to GHCR
22+
uses: docker/login-action@v3
23+
with:
24+
registry: ghcr.io
25+
username: ${{ github.actor }}
26+
password: ${{ secrets.GITHUB_TOKEN }}
27+
-
28+
name: Push to GitHub Packages
29+
uses: docker/build-push-action@v6
30+
with:
31+
context: ./docker
32+
push: true
33+
tags: ${{ steps.docker_meta.outputs.tags }}

0 commit comments

Comments
 (0)