mirror of
https://github.com/xubiaolin/docker-zerotier-planet.git
synced 2025-01-23 13:18:13 -05:00
42 lines
904 B
YAML
42 lines
904 B
YAML
name: Build and Push Docker Image
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 18 * * 0,2,4,6'
|
|
workflow_dispatch:
|
|
inputs:
|
|
clean_cache:
|
|
description: 'Clear caches'
|
|
required: false
|
|
type: boolean
|
|
|
|
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 : |
|
|
cd docker-zerotier-planet
|
|
./build.sh
|