mirror of
https://github.com/samdbmg/dhcp-netboot.xyz.git
synced 2026-01-23 02:25:09 +00:00
Add GitHub actions for automated build
This commit is contained in:
parent
d4b24a51bd
commit
ad22f8cc74
1 changed files with 29 additions and 0 deletions
29
.github/workflows/publish.yml
vendored
Normal file
29
.github/workflows/publish.yml
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
name: Publish to Docker Hub
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
# Publish master every Thursday at 7AM (schedule only applies to the master branch)
|
||||
schedule:
|
||||
- cron: "0 7 * * 4"
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
|
||||
- name: Get datetime for tag
|
||||
uses: srfrnk/current-time@master
|
||||
id: current-time
|
||||
with:
|
||||
format: YYYY-MM-DDTHHmmSS
|
||||
|
||||
- name: Build and push image
|
||||
uses: docker/build-push-action@v1
|
||||
with:
|
||||
username: samdbmg
|
||||
password: ${{ secrets.DOCKER_TOKEN }}
|
||||
repository: samdbmg/dhcp-netboot.xyz
|
||||
tags: latest, ${{ steps.current-time.outputs.formattedTime }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue