Downloader/.forgejo/workflows/actions.yml
Renovate f223ba7972
All checks were successful
Actions / Build and Push Images (pull_request) Has been skipped
Actions / Lint (pull_request) Successful in 18s
Update www.coastalcommits.com/cswimr/actions:uv Docker digest to 9a5349b
2025-01-08 00:10:53 +00:00

52 lines
1.8 KiB
YAML

name: Actions
on:
pull_request:
push:
branches:
- master
workflow_dispatch:
jobs:
images:
name: Build and Push Images
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
runs-on: docker
container: catthehacker/ubuntu:act-latest@sha256:89367f3c5437699c6b43fa941041725bcc77682a46f2bbe6557541e384d9cedb
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
token: ${{ secrets.COASTALCOMMITSTOKEN }}
- name: Login to CoastalCommits
uses: actions/docker-login@v3
with:
registry: www.coastalcommits.com
username: cswimr
password: ${{ secrets.COASTALCOMMITSTOKEN }}
- name: Build and push Downloader image
uses: actions/docker-build-push@v5
with:
context: .
file: Dockerfile
push: true
tags: www.coastalcommits.com/galacticfactory/downloader:latest
- name: Restart the Downloader stack
run: |
echo "Sending request to Portainer to restart the Downloader stack and pull the latest image"
curl -X POST --insecure ${{ secrets.BUILDWEBHOOK }}
lint:
name: Lint
runs-on: docker
container: www.coastalcommits.com/cswimr/actions:uv@sha256:9a5349b611a2fc1c042511331142279944e6b937cbf12dd3670dc89c9d6647ca
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
token: ${{ secrets.COASTALCOMMITSTOKEN }}
- name: Install dependencies
run: uv sync
- name: Lint with Ruff
run: uv run ruff check $(git ls-files '*.py')
- name: Lint with Pylint
run: uv run pylint --rcfile=.forgejo/workflows/config/.pylintrc $(git ls-files '*.py')