Skip to content

Commit 93fcce8

Browse files
authored
add: GitHub Actions workflow for Docker release
1 parent c54c90e commit 93fcce8

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/dev-release.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build and push Docker image to a container registry
2+
3+
on:
4+
push:
5+
tags:
6+
- 'beta-*.*.*'
7+
workflow_dispatch:
8+
9+
jobs:
10+
release:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
- name: Set image tag value
17+
id: vars
18+
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
19+
- uses: docker/setup-buildx-action@v3
20+
- uses: docker/login-action@v3
21+
with:
22+
registry: ghcr.io
23+
username: ${{ github.repository_owner }}
24+
password: ${{ secrets.RE_GITHUB_TOKEN }}
25+
- uses: docker/bake-action@v6
26+
env:
27+
TAG: ${{ steps.vars.outputs.tag }}
28+
with:
29+
push: true
30+
files: "build/dev/docker-bake.json"
31+

0 commit comments

Comments
 (0)