-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (35 loc) · 1.05 KB
/
docker-image.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Docker Image CI
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v5
with:
python-version: '3.11.8'
cache: 'pip' # caching pip dependencies
cache-dependency-path: 'requirements-lint.txt'
- name: Check lint
run: pip install -r requirements-lint.txt && ./scripts/lint.sh
- name: Docker Login
uses: docker/[email protected]
with:
username: kfstorm
password: ${{ secrets.DOCKER_HUB_PAT }}
- name: Docker Setup Buildx
uses: docker/[email protected]
- name: Build and push Docker images
uses: docker/[email protected]
with:
# List of target platforms for build
platforms: linux/amd64,linux/arm64/v8
# Push is a shorthand for --output=type=registry
push: true
# List of tags
tags: kfstorm/doudarr
# Cache layers for faster builds
cache-from: type=gha
cache-to: type=gha,mode=max