feat(ci): add gobuild and docker release workflow
This commit is contained in:
30
.gitea/workflows/release-docker.yaml
Normal file
30
.gitea/workflows/release-docker.yaml
Normal 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 }}
|
||||
Reference in New Issue
Block a user