This commit is contained in:
26
.gitea/workflows/release.yml
Normal file
26
.gitea/workflows/release.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
name: Release
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Log in to GitHub Container Registry
|
||||
uses: actions/docker-login@v3
|
||||
with:
|
||||
registry: git.coocn.cn
|
||||
username: ${{ secrets.USERNAME }}
|
||||
password: ${{ secrets.PASSWORD }}
|
||||
- name: Build and push Docker image
|
||||
uses: actions/docker-build@v5
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: git.coocn.cn/${{ github.repository }}
|
||||
Reference in New Issue
Block a user