Skip to content

Auto Image Rebuild #120

Auto Image Rebuild

Auto Image Rebuild #120

name: Auto Image Rebuild
on:
schedule:
- cron: "0 3 * * 1"
workflow_dispatch:
jobs:
build-latest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Regular Docker Image
uses: docker/[email protected]
with:
context: "${{ github.workspace }}"
push: true
tags: technoguyfication/caddy-cloudflare:latest
build-alpine:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Alpine Docker Image
uses: docker/[email protected]
with:
context: "${{ github.workspace }}"
push: true
tags: technoguyfication/caddy-cloudflare:alpine
file: "Dockerfile.alpine"