From 660cdd96815406814930e5417ea09f3f2733c2b9 Mon Sep 17 00:00:00 2001 From: Hayden Hargreaves Date: Thu, 2 Apr 2026 12:12:00 -0700 Subject: [PATCH] devops: working on automatic builds --- .github/workflows/deploy.yml | 39 ++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..b43cac1 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,39 @@ +--- +name: Build and Push to Gitea + +on: + push: + branches: ["master"] + +jobs: + build-and-push: + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to Gitea Registry + uses: docker/login-action@v3 + with: + registry: ${{ secrets.GIT_DOMAIN }} + username: ${{ secrets.GIT_USERNAME }} + password: ${{ secrets.GIT_TOKEN }} + + # Build and Push Go Backend + - name: Build and Push Backend + uses: docker/build-push-action@v5 + with: + context: . + push: true + tags: ${{ secrets.GITEA_DOMAIN }}/${{ secrets.GITEA_USERNAME }}/resumelens/backend:latest + + # Build and Push React Frontend + - name: Build and Push Frontend + uses: docker/build-push-action@v5 + with: + context: ./web + push: true + tags: ${{ secrets.GITEA_DOMAIN }}/${{ secrets.GITEA_USERNAME }}/resumelens/frontend:latest