Skip to content

Picons Builder

Picons Builder #110

Workflow file for this run

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 || :