-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (38 loc) · 1.03 KB
/
verify.yaml
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
44
name: Build & Push
on:
push:
branches:
- "main"
pull_request:
branches:
- "*"
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
if: github.event_name == 'pull_request'
uses: styfle/[email protected]
- name: Checkout
uses: actions/checkout@v1
- uses: actions/setup-java@v3
with:
distribution: 'adopt-openj9'
java-version: '17'
- name: Login to quay
env:
CONTAINER_USER: ${{ secrets.QUAY_USER }}
CONTAINER_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
CONTAINER_REGISTRY: quay.io
run:
echo "$CONTAINER_PASSWORD" | docker login $CONTAINER_REGISTRY --username $CONTAINER_USER --password-stdin
- name: Build images
run: |
make java_build
make docker_build
- name: Tag & Push
env:
USER: tealc
if: ${{ github.ref == 'refs/heads/main' }}
run: |
make docker_push