devops: working on automatic builds
Some checks failed
Build and Push to Gitea / build-and-push (push) Failing after 2m7s
Some checks failed
Build and Push to Gitea / build-and-push (push) Failing after 2m7s
This commit is contained in:
parent
340d069440
commit
660cdd9681
39
.github/workflows/deploy.yml
vendored
Normal file
39
.github/workflows/deploy.yml
vendored
Normal file
@ -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
|
||||||
Loading…
x
Reference in New Issue
Block a user