Bump to Quarkus 3.8.3.redhat-00003 (#247) #316
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: Publish Docker image to Quay.io | |
on: | |
workflow_dispatch: | |
push: | |
paths-ignore: | |
- 'README.md' | |
- 'LICENSE.txt' | |
- 'deploy-to-openshift.sh' | |
- 'docker-compose.yaml' | |
- 'docs/**' | |
branches: | |
- 'main' | |
jobs: | |
publish: | |
name: Build and publish Docker image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: 17 | |
cache: 'maven' | |
- name: Build | |
run: | | |
./mvnw -e -B -DskipTests=true clean package -Dnative | |
- name: Docker Login | |
uses: Azure/docker-login@v1 | |
with: | |
# Container registry username | |
username: ${{ secrets.DOCKER_USERNAME }} | |
# Container registry password | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
# Container registry server url | |
login-server: quay.io | |
- name: Build and push Docker images | |
run: | | |
IMAGE_TAG=$(git rev-parse --short=7 HEAD) | |
# IMAGE_TAG=v${{ github.run_number }} | |
docker build -f src/main/docker/Dockerfile.native -t quay.io/quarkus/registry-app:latest . | |
docker tag quay.io/quarkus/registry-app:latest quay.io/quarkus/registry-app:${IMAGE_TAG} | |
docker push quay.io/quarkus/registry-app:latest | |
docker push quay.io/quarkus/registry-app:${IMAGE_TAG} |