-
-
Notifications
You must be signed in to change notification settings - Fork 18
43 lines (38 loc) · 1.16 KB
/
ngrok-caddy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Docker Image Ngrok-Caddy
on:
workflow_dispatch:
schedule:
- cron: "0 6 * * *" # 6 am Daily
push:
branches:
- main
paths:
- caddy-ngrok/**
- .github/workflows/ngrok-caddy.yml
jobs:
ngrok-caddy:
name: NGrok Caddy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- name: Login to Github Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
if: ${{ !env.ACT }}
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
if: ${{ !env.ACT }}
- uses: docker/build-push-action@v6
with:
context: dnsmasq
platforms: linux/amd64,linux/arm64
push: ${{ github.ref == 'refs/heads/main' && !env.ACT }}
tags: ghcr.io/${{ github.repository_owner }}/caddy-ngrok:latest, wardenenv/caddy-ngrok:latest