Skip to content

Merge pull request #4 from moritzlerch/pypi-publishing #18

Merge pull request #4 from moritzlerch/pypi-publishing

Merge pull request #4 from moritzlerch/pypi-publishing #18

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