feat(ci): add gobuild and docker release workflow

This commit is contained in:
2025-11-19 22:55:35 +01:00
parent 8c1d1355c9
commit f6b545de76
4 changed files with 77 additions and 3 deletions

View File

@@ -0,0 +1,30 @@
name: docker
on:
push:
pull_request:
branches:
- main
env:
VERSION: ${{ github.ref_name }}-${{ github.sha[0:7] }}
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: tueem/svg-templater:${{ VERSION }}