-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (40 loc) · 1.18 KB
/
ci.yml
File metadata and controls
43 lines (40 loc) · 1.18 KB
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
42
43
name: Build
on:
pull_request:
branches: ['**']
push:
branches: ['**']
tags: [v*]
jobs:
build:
strategy:
matrix:
temurin_tag:
- 11.0.27_6-jre
- 11.0.27_6-jdk
- 17.0.15_6-jre
- 17.0.15_6-jdk
- 21.0.7_6-jre
- 21.0.7_6-jdk
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build and Push Docker Image
uses: Dwolla/jenkins-agents-workflow/.github/actions/build@main
with:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
BASE_TAG: ${{ matrix.TEMURIN_TAG }}
TAG_NAME: TEMURIN_TAG
IMAGE_NAME: dwolla/java
- name: Active Snyk Project
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v'))
run: ./scripts/activate-snyk-project.sh java ${{ matrix.temurin_tag }} $(git rev-parse --short "$GITHUB_SHA")
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
build-complete:
needs: build
runs-on: ubuntu-latest
steps:
- run: echo "The build completed successfully"