From 8c10cd71c60d230ec0cafc958ee73835e3c5475c Mon Sep 17 00:00:00 2001 From: RyjkovAlexey Date: Sat, 20 Jan 2024 12:05:01 +0300 Subject: [PATCH] build action create build backend action --- .github/workflows/build-backend.yml | 36 +++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/build-backend.yml diff --git a/.github/workflows/build-backend.yml b/.github/workflows/build-backend.yml new file mode 100644 index 0000000..0c4ed7c --- /dev/null +++ b/.github/workflows/build-backend.yml @@ -0,0 +1,36 @@ +name: build-backend +run-name: build-backend + +on: + push: + branches: + - main + + +jobs: + build-and-push-job: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - name: Checkout Repo + uses: actions/checkout@v2 + + - name: Login to GH Container Regitstry + uses: docker/login-action@v1 + + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build image + uses: docker/build-push-action@v2 + with: + context: . + file: ./backend/Dockerfile + push: true + working-directory: ./backend + tags: ghcr.io/qase-tms/shelterpaws/shelterpaws:latest +