2021-05-12 08:54:14 +08:00
|
|
|
name: Build and push Docker images weekly
|
2021-05-12 08:44:17 +08:00
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: "12 16 * * 2"
|
2023-02-09 09:25:35 +08:00
|
|
|
workflow_dispatch:
|
2021-05-12 08:44:17 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
docker:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
|
|
|
image: hairyhenderson/dockerfiles-builder:latest
|
|
|
|
env:
|
|
|
|
BASHBREW_LIBRARY: ./library
|
|
|
|
BASHBREW_NAMESPACE: productionwentdown
|
2021-11-16 14:50:16 +08:00
|
|
|
BASHBREW_ARCH_NAMESPACES: amd64=productionwentdown
|
2021-05-12 08:44:17 +08:00
|
|
|
if: github.repository == 'productionwentdown/caddy' && github.ref == 'refs/heads/master'
|
|
|
|
steps:
|
|
|
|
|
2022-07-09 19:23:14 +08:00
|
|
|
- uses: actions/checkout@v3
|
2021-05-12 08:44:17 +08:00
|
|
|
|
|
|
|
- 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
|
2021-05-12 08:52:45 +08:00
|
|
|
bashbrew put-shared --single-arch caddy
|