Build frontend automatically
This commit is contained in:
parent
f97ed39bbe
commit
be6ab301c6
@ -3,7 +3,7 @@ run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
|||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
test:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
@ -22,6 +22,29 @@ jobs:
|
|||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: mvn -B package --file backend/pom.xml
|
run: mvn -B package --file backend/pom.xml
|
||||||
|
|
||||||
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
|
build-and-push-frontend:
|
||||||
# - name: Update dependency graph
|
runs-on: ubuntu-latest
|
||||||
#uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Log into registry at Gitea
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
registry: https://git.fawkes100.de
|
||||||
|
username: ${{ secrets.REGISTRY_USER }}
|
||||||
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
|
- name: Setup Docker buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
- name: Extract Docker metadata
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata-action@v2
|
||||||
|
with:
|
||||||
|
images: git.fawkes100.de/TimeManager/timemanager-frontend
|
||||||
|
- name: Build and Push Latest Docker Image
|
||||||
|
id: build-and-push-latest
|
||||||
|
uses: docker/build-push-action@v4
|
||||||
|
if: ${{ github.ref == 'refs/heads/main' }}
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: ./docker/frontend
|
||||||
|
push: true
|
||||||
|
tags: git.fawkes100.de/TimeManager/timemanager-frontend:latest
|
Loading…
Reference in New Issue
Block a user