Skip to content

Commit 501699f

Browse files
authored
Add release workflow for building Docker images
1 parent f2c99f8 commit 501699f

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Image Build
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
required: true
8+
type: string
9+
description: Image version to build
10+
release:
11+
types: [published]
12+
13+
env:
14+
REGISTRY: docker.io
15+
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
16+
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
17+
TAG: ${{ github.event_name == 'workflow_dispatch' && inputs.version || github.ref_name }}
18+
19+
20+
jobs:
21+
build:
22+
name: Build and Push Docker images
23+
runs-on: ubuntu-24.04
24+
steps:
25+
- name: Checkout code
26+
uses: actions/checkout@v6
27+
28+
- name: Check image tag
29+
run: |
30+
echo "TAG=${TAG}"
31+

0 commit comments

Comments
 (0)