Skip to content

fix: more stuff in prod #15

fix: more stuff in prod

fix: more stuff in prod #15

name: Build and deploy docker container to ghcr.io
on:
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
if: (github.event_name == 'pull_request' && github.event.action == 'closed') || github.event_name == 'workflow_dispatch'
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Build and push
run: |
REPO="${GITHUB_REPOSITORY@L}"
docker build . --file Dockerfile --tag ghcr.io/${REPO}:latest
docker push ghcr.io/${REPO}:latest