Picons Builder #48
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Picons Builder | |
on: | |
schedule: | |
- cron: '20 17 * * 3' | |
workflow_dispatch: | |
jobs: | |
picons_builder: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3.1.0 | |
- name: Build image | |
run: | | |
docker build --no-cache -t ghcr.io/linuxserver/picons-builder:latest . | |
- name: Tag image | |
if: ${{ github.ref == format('refs/heads/master') }} | |
run: | | |
docker tag ghcr.io/linuxserver/picons-builder:latest ghcr.io/linuxserver/picons-builder:$(date +%F) | |
- name: Login to GitHub Container Registry | |
if: ${{ github.ref == format('refs/heads/master') }} | |
run: | | |
echo "${{ secrets.CR_PAT }}" | docker login ghcr.io -u ${{ secrets.CR_USER }} --password-stdin | |
- name: Push tags to GitHub Container Registry | |
if: ${{ github.ref == format('refs/heads/master') }} | |
run: | | |
docker push ghcr.io/linuxserver/picons-builder:$(date +%F) | |
docker push ghcr.io/linuxserver/picons-builder:latest | |
- name: Generate Repo Activity | |
if: ${{ github.ref == format('refs/heads/master') }} | |
run: | | |
sed -i -r "s|^[0-9]{4}-[0-9]{2}-[0-9]{2}|$(date +%F)|" last_pushed.md | |
git config --local user.email "ci@linuxserver.io" | |
git config --local user.name "LinuxServer-CI" | |
git add . || : | |
git commit -m '[bot] Updating push date' || : | |
git push || : |