Skip to content

Merge pull request #4 from ExcelentProject/use-atomic-int-instead-cou… #7

Merge pull request #4 from ExcelentProject/use-atomic-int-instead-cou…

Merge pull request #4 from ExcelentProject/use-atomic-int-instead-cou… #7

Workflow file for this run

name: build
on:
push:
branches:
- "main"
jobs:
image:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
registry: quay.io
username: ${{ secrets.QUAY_USER }}
password: ${{ secrets.QUAY_PASSWORD }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'microsoft'
- name: Build with Maven
run: mvn clean install
- name: Copy files
run: make copy_files
- name: Build and push
uses: docker/build-push-action@v3
with:
context: ./docker-image
file: ./docker-image/Dockerfile
push: true
tags: quay.io/tealc/metrics-collector:latest