Update feature.properties #12
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: Docker Image CI | |
on: | |
push: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '21' | |
distribution: 'adopt' | |
- name: Build with Maven | |
run: mvn clean install -B | |
- name: Upload artifact for deployment job | |
uses: actions/upload-artifact@v3 | |
with: | |
name: java-app | |
path: '${{ github.workspace }}' | |
docker: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Download artifact from build job | |
uses: actions/download-artifact@v3 | |
with: | |
name: java-app | |
- name: Build Docker image feature test | |
run: | | |
docker build -t feature-test:latest . | |
docker login ${{ secrets.ACR_LOGIN_SERVER }} -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} | |
docker tag feature-test:latest ${{ secrets.ACR_LOGIN_SERVER }}/feature-test:latest | |
docker push ${{ secrets.ACR_LOGIN_SERVER }}/feature-test:latest |