next development version 2.7.15-2-SNAPSHOT #51
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: "Push Images" | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- sb-2.7.x | |
jobs: | |
push: | |
name: Push Images to Quay.io | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java: [ 11 ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2.3.4 | |
- name: Setup Java | |
uses: actions/setup-java@v2.3.1 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: 'adopt' | |
cache: 'maven' | |
- name: Quay.io Login | |
run: docker login quay.io -u="${{secrets.QUAY_USER}}" -p="${{secrets.QUAY_TOKEN}}" | |
- name: Build | |
run: ./mvnw -s .github/mvn-settings.xml clean package | |
- name: Push Image to Quay.io | |
run: | | |
CONTAINER_REGISTRY=quay.io/snowdrop | |
IMAGE=spring-boot-health-check-example:2.7 | |
docker build . -t $IMAGE | |
docker tag $IMAGE $CONTAINER_REGISTRY/$IMAGE | |
docker push $CONTAINER_REGISTRY/$IMAGE |