1
0
Fork 0

Create build_weekly.yml

master
Ambrose Chua 2021-05-12 08:44:17 +08:00 committed by GitHub
parent 4aac5d2a7a
commit 7c6a095c41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 39 additions and 0 deletions

39
.github/workflows/build_weekly.yml vendored Normal file
View File

@ -0,0 +1,39 @@
name: Build and push somewhat weekly
on:
schedule:
- cron: "12 16 * * 2"
push:
branches:
- master
jobs:
docker:
runs-on: ubuntu-latest
container:
image: hairyhenderson/dockerfiles-builder:latest
env:
BASHBREW_LIBRARY: ./library
BASHBREW_NAMESPACE: productionwentdown
if: github.repository == 'productionwentdown/caddy' && github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v2
- name: Build images on Linux
if: steps.commit-dockerfiles.outputs.bumped == 'yes' || steps.commit-bashbrew.outputs.bumped == 'yes'
run: |
bashbrew build --pull always caddy
- name: Push images
if: steps.commit-dockerfiles.outputs.bumped == 'yes' || steps.commit-bashbrew.outputs.bumped == 'yes'
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 caddy
- name: Ping microbadger
if: steps.commit-dockerfiles.outputs.bumped == 'yes'
run: curl -X POST https://hooks.microbadger.com/images/productionwentdown/caddy/OVgee2in7ldJ7GgTZiScpwH_mTs=