[*] 修改为 group
This commit is contained in:
29
.gitea/workflows/docker.yaml
Normal file
29
.gitea/workflows/docker.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
name: Build Docker Image
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
Explore-Gitea-Actions:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: https://git.martin98.com/actions/checkout.git@v4
|
||||
|
||||
- name: Log in to Docker Hub
|
||||
uses: https://git.martin98.com/actions/login-action.git@v3
|
||||
with:
|
||||
registry: ${{ vars.DOCKER_HUB }}
|
||||
username: ${{ vars.DOCKER_USERNAME }}
|
||||
password: ${{ vars.DOCKER_PASSWORD }}
|
||||
|
||||
- name: Build and push
|
||||
uses: https://git.martin98.com/actions/build-push-action.git@v4
|
||||
with:
|
||||
context: .
|
||||
platforms: linux/amd64
|
||||
push: true
|
||||
tags: |
|
||||
docker.martin98.com/martin_farm/init:latest
|
||||
docker.martin98.com/martin_farm/init:${{ github.sha }}
|
||||
Reference in New Issue
Block a user