next development version 2.7.18-2-SNAPSHOT #74
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/[email protected] | |
- name: Setup Java | |
uses: actions/[email protected] | |
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-crud-example:2.7 | |
docker build . -t $IMAGE | |
docker tag $IMAGE $CONTAINER_REGISTRY/$IMAGE | |
docker push $CONTAINER_REGISTRY/$IMAGE |