From d5e09d1d9b447a4c2dd790802fd996960732602b Mon Sep 17 00:00:00 2001 From: orensbruli Date: Wed, 17 Jan 2024 09:21:56 +0100 Subject: [PATCH] new docker build workflow --- .github/workflows/docker_build.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/docker_build.yml diff --git a/.github/workflows/docker_build.yml b/.github/workflows/docker_build.yml new file mode 100644 index 0000000..43ae9cc --- /dev/null +++ b/.github/workflows/docker_build.yml @@ -0,0 +1,30 @@ +name: Build and Push Docker Image + +on: + push: + paths: + - 'Dockerfile' + - 'requirements.txt' + +jobs: + build-and-push: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Log in to GitHub Container Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and push Docker image + uses: docker/build-push-action@v3 + with: + context: . + file: ./Dockerfile + push: true + tags: ghcr.io/${{ github.repository_owner }}/latex-build:latest \ No newline at end of file