name: Publish Docker image

on:
  push:
    branches: 
      - 'master'

env:
  REGISTRY: ghcr.io
  IMAGE_NAME: showme

jobs:
  build-and-push-image:
    runs-on: ubuntu-latest
    permissions:
      contents: read
      packages: write
    
    steps:
      - name: Checkout
        uses: actions/checkout@v3

      - name: Log in to the Container registry
        uses: docker/login-action@v1
        with:
          registry: ${{ env.REGISTRY }}
          username: ${{ github.actor }}
          password: ${{ secrets.GITHUB_TOKEN }}

      - name: Build and push Docker image
        uses: docker/build-push-action@v2
        with:
          push: true
          tags: ${{ env.REGISTRY }}/aurer/${{ env.IMAGE_NAME}}:latest
Add gh action to push to ghcr
Add gh action to push to ghcr
