-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (30 loc) · 953 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Release Containerimage
on:
workflow_dispatch:
jobs:
build-test-push:
runs-on: ubuntu-latest
steps:
- 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: Set up Maven
uses: actions/setup-maven@v2
with:
maven-version: '3.9.6'
- 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