Skip to content

Merge pull request #25 from deadsnakes/buildx-cache #15

Merge pull request #25 from deadsnakes/buildx-cache

Merge pull request #25 from deadsnakes/buildx-cache #15

Workflow file for this run

on:
pull_request:
paths: [dockerfiles/*, .github/workflows/main.yml]
push:
branches: [main]
paths: [dockerfiles/*, .github/workflows/main.yml]
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: docker login --user '${{ github.actor }}' --password-stdin ghcr.io <<< "$GHCR_TOKEN"
env:
GHCR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: github.event_name != 'pull_request'
- run: docker buildx create --driver docker-container --use
- run: python3 -uS bin/docker-build --event ${{ github.event_name }}