docker-zerotier-planet/.github/workflows/image-build.yml
Workflow config file is invalid. Please check your config file: yaml: line 24: could not find expected ':'
chenxudong2020 7afe3809b9 aa
2024-10-13 07:38:34 +08:00

38 lines
778 B
YAML

name: Build and Push Docker Image
on:
push:
branches:
- master
schedule:
- cron: '0 0 * * *' # 每天的 0 点执行
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
repository: ${{secrets.REPOSITORY}}
submodules: true
show-progress: true
- name: Modify
run : |
sh copy.sh
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
run: ./build.sh