Skip to content

Commit 910f62a

Browse files
authored
Update Docker CI workflow to trigger on tags
1 parent 5433c02 commit 910f62a

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/docker-image.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Docker Image CI
2+
3+
on:
4+
push:
5+
tags:
6+
- '*' # Triggers on all new tags, e.g., v1.0.0, release-2025-11-06, etc.
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Extract tag name
16+
id: vars
17+
run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
18+
19+
- name: Build the Docker image
20+
run: docker build . --file Dockerfile --tag v:${TAG}

0 commit comments

Comments
 (0)