generated from Tour-de-App/generic-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (33 loc) · 881 Bytes
/
pipeline.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
39
40
41
name: Build and push to TdA
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check Out Repo
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: "17"
distribution: "adopt"
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: MVN Package
run: ./mvnw package
- name: Build
uses: docker/build-push-action@v3
with:
context: ./
file: ./src/main/docker/Dockerfile.jvm
tags: tda:latest
outputs: type=docker,dest=/tmp/tda.tar
- name: Upload to TdA
uses: Tour-de-App/upload-app@tda-25
with:
team_token: ${{ secrets.TEAM_TOKEN }}
image_name: tda
image_path: /tmp/tda.tar