Skip to content

ci: fix pip deployment (#6) #59

ci: fix pip deployment (#6)

ci: fix pip deployment (#6) #59

Workflow file for this run

name: Docker deployment
on: push
jobs:
deploy-docker:
name: Deploy to docker
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
push: true
file: ./Dockerfile
tags: ghcr.io/${{ github.repository }}:latest