Merge pull request #4 from ExcelentProject/use-atomic-int-instead-cou… #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |