Skip to content

final cleanup

final cleanup #141

Workflow file for this run

name: deploy
on:
push:
branches: [main]
tags: [v*]
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
- uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- id: meta
uses: docker/metadata-action@v3
with:
images: ghcr.io/${{ github.repository }}
- uses: docker/build-push-action@v2
with:
context: .
file: Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- uses: actions/setup-python@v2
with:
python-version: '3.12'
- run: |
python -m pip install --upgrade pip
pip install -r requirements/prefect.txt
- env:
PREFECT_API_URL: ${{ secrets.PREFECT_API_URL }}
run: |
prefect config set PREFECT_API_URL=$PREFECT_API_URL
- run: python src/deploy_prefect/deployment.py