docker-zerotier-planet/.github/workflows/image-build.yml

42 lines
904 B
YAML
Raw Normal View History

2024-05-19 10:41:22 -04:00
name: Build and Push Docker Image
on:
2024-05-20 02:18:40 -04:00
schedule:
2024-10-12 19:42:12 -04:00
- cron: '0 18 * * 0,2,4,6'
workflow_dispatch:
inputs:
clean_cache:
description: 'Clear caches'
required: false
type: boolean
2024-05-19 10:41:22 -04:00
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
2024-10-12 19:38:34 -04:00
uses: actions/checkout@v4
with:
repository: ${{secrets.REPOSITORY}}
submodules: true
show-progress: true
- name: Modify
run : |
2024-10-12 20:08:11 -04:00
sh ./copy.sh
2024-05-19 10:41:22 -04:00
- 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
2024-10-12 19:49:21 -04:00
run : |
2024-10-12 20:08:11 -04:00
cd docker-zerotier-planet
2024-10-12 19:49:56 -04:00
./build.sh