45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
name: Build and Push CodeReview
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Login to Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: sl.vrgon.com:3000
|
|
username: ${{ gitea.actor }}
|
|
password: ${{ secrets.GITEA_TOKEN }}
|
|
|
|
- name: Build and Push Backend
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: ./backend
|
|
push: true
|
|
tags: sl.vrgon.com:3000/zk_senlan/codereview:backend
|
|
|
|
- name: Build and Push Frontend
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: ./frontend
|
|
push: true
|
|
tags: sl.vrgon.com:3000/zk_senlan/codereview:frontend
|
|
|
|
- name: Build and Push Sandbox
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: ./docker/sandbox
|
|
push: true
|
|
tags: sl.vrgon.com:3000/zk_senlan/codereview:sandbox
|