Skip to content

Containers

Containers #124

Workflow file for this run

name: Containers
on:
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:
permissions:
contents: write
jobs:
build:
name: Build and push
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v3
- name: Build and push container
uses: coreos/actions-lib/build-container@main
with:
credentials: ${{ secrets.QUAY_AUTH }}
push: quay.io/coreos/mkpasswd
- name: Update README
run: |
# This is load-bearing: GitHub will disable the job if the repo
# doesn't stay active. Do not enable branch protection for main;
# it'll break this.
git config user.name 'CoreOS Bot'
git config user.email coreosbot@fedoraproject.org
sed -i "s/updated-.*-green/updated-$(date +%Y--%m--%d)-green/" README.md
git add README.md
if git diff --quiet --staged --exit-code; then
echo "README.md already up to date"
exit 0
fi
git commit -m "README: update build date"
git push