Files
init/.gitea/workflows/docker.yaml
Martin 22848f01e7
Some checks failed
Build Docker Image / Explore-Gitea-Actions (push) Failing after 11s
[+] 更新构建源
2025-04-11 13:32:04 +08:00

29 lines
804 B
YAML

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: |
git.martin98.com/martinfarm/init:latest
git.martin98.com/martinfarm/init:${{ github.sha }}