Skip to content

Commit

Permalink
refactor main.yml for dev
Browse files Browse the repository at this point in the history
issue #44
  • Loading branch information
Jaroslav380 committed Jan 22, 2025
1 parent 8e868b6 commit 3bff795
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,36 @@
name: Release Containerimage

on:
push:
branches:
- dev
workflow_dispatch:

jobs:
build-test-push:
runs-on: ubuntu-latest

steps:
- name: Howdy
run: echo "Howdy from main"
- uses: actions/checkout@v3
name: checkout

- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
cache: maven

- name: Build with Maven
run: mvn clean install

- name: Log in to GHCR
uses: docker/login-action@v2
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build Docker Image and Push to GHCR
run: |
docker tag gepardec-gamertrack:latest ghcr.io/${{ github.repository_owner }}/gepardec-gamertrack:latest
docker push ghcr.io/${{ github.repository_owner }}/gepardec-gamertrack:latest

0 comments on commit 3bff795

Please sign in to comment.