Skip to content

Commit

Permalink
Build workflow modified
Browse files Browse the repository at this point in the history
  • Loading branch information
jschm42 committed Nov 5, 2023
1 parent d1016b8 commit d52079d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/build-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ on:
pull_request:
branches: [ "master" ]

# Ausführen wenn neues Release erstellt wurde
#on:
# release:
# types: [published]

jobs:
build:

Expand All @@ -31,6 +36,19 @@ jobs:
run: mvn -B package --file pom.xml
- name: Build the Docker image
run: docker build . --file Dockerfile --tag talkforgeai/talkforgeai:"$(date +%s)"
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: talkforgeai/talkforgeai:latest

# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
# - name: Update dependency graph
Expand Down

0 comments on commit d52079d

Please sign in to comment.