-
Notifications
You must be signed in to change notification settings - Fork 17
32 lines (27 loc) · 1008 Bytes
/
build_weekly.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
name: Build and push Docker images weekly
on:
schedule:
- cron: "12 16 * * 2"
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-latest
container:
image: hairyhenderson/dockerfiles-builder:latest
env:
BASHBREW_LIBRARY: ./library
BASHBREW_NAMESPACE: productionwentdown
BASHBREW_ARCH_NAMESPACES: amd64=productionwentdown
if: github.repository == 'productionwentdown/caddy' && github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v3
- name: Build images on Linux
run: |
bashbrew build --pull always caddy
- name: Push images
run: |
wget https://github.com/estesp/manifest-tool/releases/download/v1.0.2/manifest-tool-linux-amd64 -O /usr/local/bin/manifest-tool
chmod +x /usr/local/bin/manifest-tool
echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login --username ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
bashbrew push caddy
bashbrew put-shared --single-arch caddy