chore(workflow): rename build-image and add frontend build
All checks were successful
All checks were successful
This commit is contained in:
parent
36237874f7
commit
40e1ae5f87
1 changed files with 33 additions and 2 deletions
|
@ -31,10 +31,10 @@ jobs:
|
|||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
|
||||
build-image:
|
||||
build-backend-image:
|
||||
needs: release
|
||||
runs-on: ubuntu-latest
|
||||
name: Build Docker Image
|
||||
name: Build Backend Image
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
@ -61,3 +61,34 @@ jobs:
|
|||
tags: |
|
||||
git.kjan.de/szut/casino-backend:latest
|
||||
git.kjan.de/szut/casino-backend:${{ env.TAG }}
|
||||
|
||||
build-frontend-image:
|
||||
needs: release
|
||||
runs-on: ubuntu-latest
|
||||
name: Build Frontend Image
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0 # Ensure full history is available
|
||||
- name: Extract tag
|
||||
run: |
|
||||
TAG=$(git describe --tags --abbrev=0)
|
||||
echo "TAG=$TAG" >> $GITHUB_ENV
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Login
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.kjan.de
|
||||
username: ${{ secrets.DOCKER_USER }}
|
||||
password: ${{ secrets.DOCKER_PASS }}
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: frontend/
|
||||
file: frontend/.docker/Dockerfile
|
||||
push: true
|
||||
tags: |
|
||||
git.kjan.de/szut/casino-frontend:latest
|
||||
git.kjan.de/szut/casino-frontend:${{ env.TAG }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue